TruckProfile.fromJson constructor

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

Implementation

factory TruckProfile.fromJson(final Map<String, dynamic> json) {
  return TruckProfile(
    mass: json['mass'],
    height: json['height'],
    length: json['length'],
    width: json['width'],
    axleLoad: json['axleLoad'],
    maxSpeed: json['maxSpeed'],
    fuel: FuelTypeExtension.fromId(json['fuel']),
  );
}