toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() {
  final acl = this.acl;
  final bucket = this.bucket;
  final cacheControl = this.cacheControl;
  final componentCount = this.componentCount;
  final contentDisposition = this.contentDisposition;
  final contentEncoding = this.contentEncoding;
  final contentLanguage = this.contentLanguage;
  final contentType = this.contentType;
  final contexts = this.contexts;
  final crc32c = this.crc32c;
  final customTime = this.customTime;
  final customerEncryption = this.customerEncryption;
  final etag = this.etag;
  final eventBasedHold = this.eventBasedHold;
  final generation = this.generation;
  final hardDeleteTime = this.hardDeleteTime;
  final id = this.id;
  final kind = this.kind;
  final kmsKeyName = this.kmsKeyName;
  final md5Hash = this.md5Hash;
  final mediaLink = this.mediaLink;
  final metadata = this.metadata;
  final metageneration = this.metageneration;
  final name = this.name;
  final owner = this.owner;
  final restoreToken = this.restoreToken;
  final retention = this.retention;
  final retentionExpirationTime = this.retentionExpirationTime;
  final selfLink = this.selfLink;
  final size = this.size;
  final softDeleteTime = this.softDeleteTime;
  final storageClass = this.storageClass;
  final temporaryHold = this.temporaryHold;
  final timeCreated = this.timeCreated;
  final timeDeleted = this.timeDeleted;
  final timeFinalized = this.timeFinalized;
  final timeStorageClassUpdated = this.timeStorageClassUpdated;
  final updated = this.updated;
  return {
    'acl': ?acl,
    'bucket': ?bucket,
    'cacheControl': ?cacheControl,
    'componentCount': ?componentCount,
    'contentDisposition': ?contentDisposition,
    'contentEncoding': ?contentEncoding,
    'contentLanguage': ?contentLanguage,
    'contentType': ?contentType,
    'contexts': ?contexts,
    'crc32c': ?crc32c,
    'customTime': ?customTime?.toUtc().toIso8601String(),
    'customerEncryption': ?customerEncryption,
    'etag': ?etag,
    'eventBasedHold': ?eventBasedHold,
    'generation': ?generation,
    'hardDeleteTime': ?hardDeleteTime?.toUtc().toIso8601String(),
    'id': ?id,
    'kind': ?kind,
    'kmsKeyName': ?kmsKeyName,
    'md5Hash': ?md5Hash,
    'mediaLink': ?mediaLink,
    'metadata': ?metadata,
    'metageneration': ?metageneration,
    'name': ?name,
    'owner': ?owner,
    'restoreToken': ?restoreToken,
    'retention': ?retention,
    'retentionExpirationTime': ?retentionExpirationTime
        ?.toUtc()
        .toIso8601String(),
    'selfLink': ?selfLink,
    'size': ?size,
    'softDeleteTime': ?softDeleteTime?.toUtc().toIso8601String(),
    'storageClass': ?storageClass,
    'temporaryHold': ?temporaryHold,
    'timeCreated': ?timeCreated?.toUtc().toIso8601String(),
    'timeDeleted': ?timeDeleted?.toUtc().toIso8601String(),
    'timeFinalized': ?timeFinalized?.toUtc().toIso8601String(),
    'timeStorageClassUpdated': ?timeStorageClassUpdated
        ?.toUtc()
        .toIso8601String(),
    'updated': ?updated?.toUtc().toIso8601String(),
  };
}