fromJson static method

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

Implementation

static TankerkoenigStationByRadiusResponse fromJson(
  Map<String, dynamic> json,
) {
  return TankerkoenigStationByRadiusResponse(
    LatLng(
      json["searchCenter"]["lat"],
      json["searchCenter"]["lng"],
    ),
    json["license"],
    json["timestamp"],
    (json["stations"] ?? [])
        .map<TankerkoenigStation>(
          (station) => TankerkoenigStation.fromJson(
            station,
          ),
        )
        .toList(),
  );
}