toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.example != null) {
    json[r'example'] = this.example;
  } else {
    json[r'example'] = null;
  }
  if (this.key != null) {
    json[r'key'] = this.key;
  } else {
    json[r'key'] = null;
  }
  if (this.label != null) {
    json[r'label'] = this.label;
  } else {
    json[r'label'] = null;
  }
  if (this.required_ != null) {
    json[r'required'] = this.required_;
  } else {
    json[r'required'] = null;
  }
  return json;
}