TruckInfo.fromJson constructor

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

Implementation

factory TruckInfo.fromJson(Map<String, dynamic> json) {
  return TruckInfo(
    plateProvince: json['plateProvince'] as String?,
    plateNumber: json['plateNumber'] as String?,
    truckAxis: json['truckAxis'] as double?,
    truckHeight: json['truckHeight'] as double?,
    truckWidth: json['truckWidth'] as double?,
    truckLoad: json['truckLoad'] as double?,
    truckWeight: json['truckWeight'] as double?,
  );
}