toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final bucket = this.bucket;
  final roleArn = this.roleArn;
  final keyPrefix = this.keyPrefix;
  return {
    'bucket': bucket,
    'roleArn': roleArn,
    if (keyPrefix != null) 'keyPrefix': keyPrefix,
  };
}