toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var adf = this.adf;
  var choices = this.choices;
  var date = this.date;
  var text = this.text;
  var time = this.time;
  var users = this.users;

  final json = <String, Object?>{};
  if (adf != null) {
    json[r'adf'] = adf.toJson();
  }
  json[r'choices'] = choices;
  if (date != null) {
    json[r'date'] = date;
  }
  if (text != null) {
    json[r'text'] = text;
  }
  if (time != null) {
    json[r'time'] = time;
  }
  json[r'users'] = users;
  return json;
}