fromMap static method

AMapLocation? fromMap(
  1. dynamic json
)

Implementation

static AMapLocation? fromMap(dynamic json) {
  if (null == json) {
    return null;
  }

  return AMapLocation(
    provider: json['provider'],
    latLng: LatLng.fromJson(json['latLng'])!,
    accuracy: (json['accuracy']).toDouble(),
    altitude: (json['altitude']).toDouble(),
    bearing: (json['bearing']).toDouble(),
    speed: (json['speed']).toDouble(),
    time: json['time'],
  );
}