fromJson method
Converts a JSON map to a MarkerShape object, or null if json is null.
Uses the factory constructor MarkerShape.fromJson to create the appropriate subclass based on the 'type' field in the JSON.
Implementation
@override
MarkerShape? fromJson(Map<String, dynamic>? json) {
if (json == null) return null;
return MarkerShape.fromJson(json);
}