toJson method

Map<String, dynamic> toJson()

Implementation

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