toJson method Null safety

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (encryptionEntityId != null)
        'encryptionEntityId': encryptionEntityId!,
      if (encryptionEntityType != null)
        'encryptionEntityType': encryptionEntityType!,
      if (encryptionSource != null) 'encryptionSource': encryptionSource!,
      if (kind != null) 'kind': kind!,
    };