toMap method
- EnumMethod? enumMethod,
Converts instance to a map.
Implementation
Map<String, dynamic> toMap({EnumMethod? enumMethod}) {
return {
"allowFailover": allowFailover,
"excludedDomains": excludedDomains,
"matchDomains": matchDomains,
"password": password,
"schemeFilter": switch (enumMethod ?? EnumMethod.nativeValue) {
EnumMethod.nativeValue => schemeFilter?.toNativeValue(),
EnumMethod.value => schemeFilter?.toValue(),
EnumMethod.name => schemeFilter?.name(),
},
"url": url,
"username": username,
};
}