toJson method

Map<String, dynamic> toJson()

Implementation

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