copyWith method

PersonalInfoResponse copyWith({
  1. String? id,
  2. dynamic age,
  3. dynamic weight,
  4. dynamic height,
  5. dynamic biologicalSex,
  6. dynamic email,
})

Implementation

PersonalInfoResponse copyWith(
    {String? id,
    dynamic age,
    dynamic weight,
    dynamic height,
    dynamic biologicalSex,
    dynamic email}) {
  return PersonalInfoResponse(
      id: id ?? this.id,
      age: age ?? this.age,
      weight: weight ?? this.weight,
      height: height ?? this.height,
      biologicalSex: biologicalSex ?? this.biologicalSex,
      email: email ?? this.email);
}