toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (acl != null) 'acl': acl!,
      if (autoclass != null) 'autoclass': autoclass!,
      if (billing != null) 'billing': billing!,
      if (cors != null) 'cors': cors!,
      if (customPlacementConfig != null)
        'customPlacementConfig': customPlacementConfig!,
      if (defaultEventBasedHold != null)
        'defaultEventBasedHold': defaultEventBasedHold!,
      if (defaultObjectAcl != null) 'defaultObjectAcl': defaultObjectAcl!,
      if (encryption != null) 'encryption': encryption!,
      if (etag != null) 'etag': etag!,
      if (hierarchicalNamespace != null)
        'hierarchicalNamespace': hierarchicalNamespace!,
      if (iamConfiguration != null) 'iamConfiguration': iamConfiguration!,
      if (id != null) 'id': id!,
      if (kind != null) 'kind': kind!,
      if (labels != null) 'labels': labels!,
      if (lifecycle != null) 'lifecycle': lifecycle!,
      if (location != null) 'location': location!,
      if (locationType != null) 'locationType': locationType!,
      if (logging != null) 'logging': logging!,
      if (metageneration != null) 'metageneration': metageneration!,
      if (name != null) 'name': name!,
      if (objectRetention != null) 'objectRetention': objectRetention!,
      if (owner != null) 'owner': owner!,
      if (projectNumber != null) 'projectNumber': projectNumber!,
      if (retentionPolicy != null) 'retentionPolicy': retentionPolicy!,
      if (rpo != null) 'rpo': rpo!,
      if (satisfiesPZS != null) 'satisfiesPZS': satisfiesPZS!,
      if (selfLink != null) 'selfLink': selfLink!,
      if (softDeletePolicy != null) 'softDeletePolicy': softDeletePolicy!,
      if (storageClass != null) 'storageClass': storageClass!,
      if (timeCreated != null)
        'timeCreated': timeCreated!.toUtc().toIso8601String(),
      if (updated != null) 'updated': updated!.toUtc().toIso8601String(),
      if (versioning != null) 'versioning': versioning!,
      if (website != null) 'website': website!,
    };