fromJson static method

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

Implementation

static TankerkoenigStationFuelLastChange fromJson(
  Map<String, dynamic> json,
) {
  return TankerkoenigStationFuelLastChange(
    DateTime.parse(
      json['timestamp'],
    ),
    json['amount'],
  );
}