toJson method

Map<String, dynamic> toJson()

Implementation

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