toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (cascadeOrigins != null) 'cascadeOrigins': cascadeOrigins!,
      if (consentResource != null) 'consentResource': consentResource!,
      if (enforcementTime != null) 'enforcementTime': enforcementTime!,
      if (matchingAccessorScopes != null)
        'matchingAccessorScopes': matchingAccessorScopes!,
      if (patientConsentOwner != null)
        'patientConsentOwner': patientConsentOwner!,
      if (type != null) 'type': type!,
      if (variants != null) 'variants': variants!,
    };