toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (healthcarePartyId != null) {
    json[r'healthcarePartyId'] = healthcarePartyId;
  }
  if (reason != null) {
    json[r'reason'] = reason;
  }
  json[r'successful'] = successful;
  if (username != null) {
    json[r'username'] = username;
  }
  return json;
}