toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.category != null) {
    json[r'category'] = this.category;
  } else {
    json[r'category'] = null;
  }
  if (this.file != null) {
    json[r'file'] = this.file;
  } else {
    json[r'file'] = null;
  }
  return json;
}