ElectricBikeProfile.fromJson constructor
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'],
);
}