toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
  if (this.isRespondedTo != null) {
    json[r'is_responded_to'] = this.isRespondedTo;
  } else {
    json[r'is_responded_to'] = null;
  }
  if (this.isBackup != null) {
    json[r'is_backup'] = this.isBackup;
  } else {
    json[r'is_backup'] = null;
  }
  if (this.isFeatured != null) {
    json[r'is_featured'] = this.isFeatured;
  } else {
    json[r'is_featured'] = null;
  }
  return json;
}