ElectricBikeProfile.fromJson constructor
Deserializes a JSON-compatible map to create an instance.
Used internally, not intended for direct use by consumers. The expected map structure may change without notice.
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'],
);
}