fromJson static method

GoogleMapsAction fromJson(
  1. Map<String, dynamic> json
)
override

Implementation

static GoogleMapsAction fromJson(Map<String, dynamic> json) {
  if (json['type'] == 'google_maps_change_position') {
    return GoogleMapsChangePositionAction.fromJson(json);
  }
  throw Exception('Unknown action type');
}