toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.etag != null) {
    json[r'etag'] = this.etag;
  } else {
    json[r'etag'] = null;
  }
  if (this.isDir != null) {
    json[r'isDir'] = this.isDir;
  } else {
    json[r'isDir'] = null;
  }
  if (this.key != null) {
    json[r'key'] = this.key;
  } else {
    json[r'key'] = null;
  }
  if (this.lastModified != null) {
    json[r'lastModified'] = this.lastModified;
  } else {
    json[r'lastModified'] = null;
  }
  if (this.size != null) {
    json[r'size'] = this.size;
  } else {
    json[r'size'] = null;
  }
  return json;
}