ElectricBikeProfile.fromJson constructor
ElectricBikeProfile.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ElectricBikeProfile.fromJson(final Map<String, dynamic> json) {
return ElectricBikeProfile(
type: ElectricBikeTypeExtension.fromId(json['type']),
bikeMass: json['bikeMass'],
bikerMass: json['bikerMass'],
auxConsumptionDay: json['auxConsumptionDay'],
auxConsumptionNight: json['auxConsumptionNight'],
ignoreLegalRestrictions: json['ignoreLegalRestrictions'],
plateNumber: json['plateNumber'],
);
}