fromJson method

  1. @override
ActionEntity fromJson(
  1. Map<String, dynamic> json,
  2. ActionMapper actionMapper
)
override

Implementation

@override
ActionEntity fromJson(Map<String, dynamic> json, ActionMapper actionMapper) {
  switch (json['type']) {
    case 'google_maps_change_position':
      return GoogleMapsChangePositionAction.fromJson(json);
    default:
      return super.fromJson(json, actionMapper);
  }
}