Characteristic.fromJson constructor

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

General constructor from JSON payload

Implementation

Characteristic.fromJson(Map<String, dynamic> json)
    : biologicalSex = BiologicalSexFactory.from(json['biologicalSex']),
      birthday = json['birthday']?.toString().date,
      bloodType = BloodTypeFactory.from(json['bloodType']),
      fitzpatrickSkinType =
          FitzpatrickSkinTypeFactory.from(json['fitzpatrickSkinType']),
      wheelchairUse = WheelchairUseFactory.from(json['wheelchairUse']),
      activityMoveMode =
          ActivityMoveModeFactory.from(json['activityMoveMode']);