fromJson static method

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

Implementation

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