toMap method
- EnumMethod? enumMethod,
Converts instance to a map.
Implementation
Map<String, dynamic> toMap({EnumMethod? enumMethod}) {
return {
"acceptTypes": acceptTypes,
"filenameHint": filenameHint,
"isCaptureEnabled": isCaptureEnabled,
"mode": switch (enumMethod ?? EnumMethod.nativeValue) {
EnumMethod.nativeValue => mode.toNativeValue(),
EnumMethod.value => mode.toValue(),
EnumMethod.name => mode.name(),
},
"title": title,
};
}