ElectricBikeProfile.fromJson constructor

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