toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.gender != null) {
    json[r'gender'] = this.gender;
  } else {
    json[r'gender'] = null;
  }
  if (this.heightInInches != null) {
    json[r'heightInInches'] = this.heightInInches;
  } else {
    json[r'heightInInches'] = null;
  }
  if (this.weightInPounds != null) {
    json[r'weightInPounds'] = this.weightInPounds;
  } else {
    json[r'weightInPounds'] = null;
  }
  if (this.tobaccoSmoker != null) {
    json[r'tobaccoSmoker'] = this.tobaccoSmoker;
  } else {
    json[r'tobaccoSmoker'] = null;
  }
  return json;
}