toMap method
Implementation
Map<String, dynamic> toMap() {
return {
"resourcePath": resourcePath,
"protocol": protocol,
"userInterfaceStyle": userInterfaceStyle?.index,
"backgroundColor": backgroundColor?.value.toRadixString(16),
"debugEnable": debugEnable,
"logEnable": logEnable,
"canceledOnTouchOutside": canceledOnTouchOutside,
"timeout": timeout,
"language": language,
"additionalParameter": additionalParameter,
"staticServers": staticServers,
"apiServers": apiServers
}..removeWhere((key, value) => value == null);
}