toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (acl != null) 'acl': acl!,
      if (bucket != null) 'bucket': bucket!,
      if (cacheControl != null) 'cacheControl': cacheControl!,
      if (componentCount != null) 'componentCount': componentCount!,
      if (contentDisposition != null)
        'contentDisposition': contentDisposition!,
      if (contentEncoding != null) 'contentEncoding': contentEncoding!,
      if (contentLanguage != null) 'contentLanguage': contentLanguage!,
      if (contentType != null) 'contentType': contentType!,
      if (crc32c != null) 'crc32c': crc32c!,
      if (customTime != null)
        'customTime': customTime!.toUtc().toIso8601String(),
      if (customerEncryption != null)
        'customerEncryption': customerEncryption!,
      if (etag != null) 'etag': etag!,
      if (eventBasedHold != null) 'eventBasedHold': eventBasedHold!,
      if (generation != null) 'generation': generation!,
      if (id != null) 'id': id!,
      if (kind != null) 'kind': kind!,
      if (kmsKeyName != null) 'kmsKeyName': kmsKeyName!,
      if (md5Hash != null) 'md5Hash': md5Hash!,
      if (mediaLink != null) 'mediaLink': mediaLink!,
      if (metadata != null) 'metadata': metadata!,
      if (metageneration != null) 'metageneration': metageneration!,
      if (name != null) 'name': name!,
      if (owner != null) 'owner': owner!,
      if (retentionExpirationTime != null)
        'retentionExpirationTime':
            retentionExpirationTime!.toUtc().toIso8601String(),
      if (selfLink != null) 'selfLink': selfLink!,
      if (size != null) 'size': size!,
      if (storageClass != null) 'storageClass': storageClass!,
      if (temporaryHold != null) 'temporaryHold': temporaryHold!,
      if (timeCreated != null)
        'timeCreated': timeCreated!.toUtc().toIso8601String(),
      if (timeDeleted != null)
        'timeDeleted': timeDeleted!.toUtc().toIso8601String(),
      if (timeStorageClassUpdated != null)
        'timeStorageClassUpdated':
            timeStorageClassUpdated!.toUtc().toIso8601String(),
      if (updated != null) 'updated': updated!.toUtc().toIso8601String(),
    };