fromJson static method

AMapPoi? fromJson(
  1. dynamic json
)

Implementation

static AMapPoi? fromJson(dynamic json) {
  if (null == json) {
    return null;
  }
  return AMapPoi(
      id: json['id'],
      name: json['name'],
      latLng: LatLng.fromJson(json['latLng'])!,
  );
}