toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var fileName = this.fileName;
  var id = this.id;
  var isDeletable = this.isDeletable;
  var isSelected = this.isSelected;
  var isSystemAvatar = this.isSystemAvatar;
  var owner = this.owner;
  var urls = this.urls;

  final json = <String, Object?>{};
  if (fileName != null) {
    json[r'fileName'] = fileName;
  }
  json[r'id'] = id;
  json[r'isDeletable'] = isDeletable;
  json[r'isSelected'] = isSelected;
  json[r'isSystemAvatar'] = isSystemAvatar;
  if (owner != null) {
    json[r'owner'] = owner;
  }
  if (urls != null) {
    json[r'urls'] = urls;
  }
  return json;
}