toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final contentType = this.contentType;
  final eTag = this.eTag;
  final lastModified = this.lastModified;
  final sSEKMSKeyId = this.sSEKMSKeyId;
  final serverSideEncryption = this.serverSideEncryption;
  final versionId = this.versionId;
  return {
    if (contentType != null) 'ContentType': contentType,
    if (eTag != null) 'ETag': eTag,
    if (lastModified != null) 'LastModified': lastModified,
    if (sSEKMSKeyId != null) 'SSEKMSKeyId': sSEKMSKeyId,
    if (serverSideEncryption != null)
      'ServerSideEncryption': serverSideEncryption,
    if (versionId != null) 'VersionId': versionId,
  };
}