// ignore_for_file: non_constant_identifier_names // ignore_for_file: camel_case_types // ignore_for_file: prefer_single_quotes // This file is automatically generated. DO NOT EDIT, all your changes would be lost. import 'package:amap_location/generated/json/location_result_entity_helper.dart'; import 'package:amap_location/location_result_entity.dart'; class JsonConvert { T fromJson(Map json) { return _getFromJson(runtimeType, this, json); } Map toJson() { return _getToJson(runtimeType, this); } static _getFromJson(Type type, data, json) { switch (type) { case LocationResultEntity: return locationResultEntityFromJson(data as LocationResultEntity, json) as T; } return data as T; } static _getToJson(Type type, data) { switch (type) { case LocationResultEntity: return locationResultEntityToJson(data as LocationResultEntity); } return data as T; } static T fromJsonAsT(json) { switch (T.toString()) { case 'LocationResultEntity': return LocationResultEntity().fromJson(json) as T; } return null; } }