toJson method
Implementation
Map<String, Object?> toJson() {
var index = this.index;
var label = this.label;
var mediaType = this.mediaType;
var path = this.path;
var size = this.size;
final json = <String, Object?>{};
if (index != null) {
json[r'index'] = index;
}
if (label != null) {
json[r'label'] = label;
}
if (mediaType != null) {
json[r'mediaType'] = mediaType;
}
if (path != null) {
json[r'path'] = path;
}
if (size != null) {
json[r'size'] = size;
}
return json;
}