toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var abbreviatedName = this.abbreviatedName;
  var entryIndex = this.entryIndex;
  var mediaType = this.mediaType;
  var name = this.name;
  var size = this.size;

  final json = <String, Object?>{};
  if (abbreviatedName != null) {
    json[r'abbreviatedName'] = abbreviatedName;
  }
  if (entryIndex != null) {
    json[r'entryIndex'] = entryIndex;
  }
  if (mediaType != null) {
    json[r'mediaType'] = mediaType;
  }
  if (name != null) {
    json[r'name'] = name;
  }
  if (size != null) {
    json[r'size'] = size;
  }
  return json;
}