toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (startDate != null) {
    json[r'startDate'] = startDate;
  }
  if (endDate != null) {
    json[r'endDate'] = endDate;
  }
  if (careTeamMemberId != null) {
    json[r'careTeamMemberId'] = careTeamMemberId;
  }
  if (membershipType != null) {
    json[r'membershipType'] = membershipType;
  }
  if (encryptedSelf != null) {
    json[r'encryptedSelf'] = encryptedSelf;
  }
  return json;
}