toJson method
Converting an object into a format for transferring to native.
Implementation
@override
Map<String, dynamic> toJson() {
return {
'initialZoom': zoom,
'initialCamera': camera != null
? {
'position': camera!.position.code,
'type': camera!.type.code,
}
: null,
...super.toJson(),
};
}