toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.mode != null) {
    json[r'mode'] = this.mode;
  } else {
    json[r'mode'] = null;
  }
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.path != null) {
    json[r'path'] = this.path;
  } else {
    json[r'path'] = null;
  }
  if (this.size != null) {
    json[r'size'] = this.size;
  } else {
    json[r'size'] = null;
  }
  if (this.type != null) {
    json[r'type'] = this.type;
  } else {
    json[r'type'] = null;
  }
  return json;
}