toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final bucket = this.bucket;
  final key = this.key;
  final objectVersion = this.objectVersion;
  final roleArn = this.roleArn;
  return {
    if (bucket != null) 'Bucket': bucket,
    if (key != null) 'Key': key,
    if (objectVersion != null) 'ObjectVersion': objectVersion,
    if (roleArn != null) 'RoleArn': roleArn,
  };
}