fromJson static method
Attempts to build a MPDirectionsRendererOptions from a JSON object, this method will decode the object if needed
Implementation
static MPDirectionsRendererOptions? fromJson(json) {
if (json == null || json == "null") {
return null;
}
final data = json is String ? jsonDecode(json) : json;
return data is Map ? MPDirectionsRendererOptions._fromJson(data) : null;
}