toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
  if (allowFileDiscovery != null) 'allowFileDiscovery': allowFileDiscovery!,
  if (deleted != null) 'deleted': deleted!,
  if (displayName != null) 'displayName': displayName!,
  if (domain != null) 'domain': domain!,
  if (emailAddress != null) 'emailAddress': emailAddress!,
  if (expirationTime != null)
    'expirationTime': expirationTime!.toUtc().toIso8601String(),
  if (id != null) 'id': id!,
  if (inheritedPermissionsDisabled != null)
    'inheritedPermissionsDisabled': inheritedPermissionsDisabled!,
  if (kind != null) 'kind': kind!,
  if (pendingOwner != null) 'pendingOwner': pendingOwner!,
  if (permissionDetails != null) 'permissionDetails': permissionDetails!,
  if (photoLink != null) 'photoLink': photoLink!,
  if (role != null) 'role': role!,
  if (teamDrivePermissionDetails != null)
    'teamDrivePermissionDetails': teamDrivePermissionDetails!,
  if (type != null) 'type': type!,
  if (view != null) 'view': view!,
};