toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'name'] = this.name;
  if (this.style != null) {
    json[r'style'] = this.style;
  } else {
    json[r'style'] = null;
  }
    json[r'text'] = this.text;
    json[r'type'] = this.type;
  if (this.value != null) {
    json[r'value'] = this.value;
  } else {
    json[r'value'] = null;
  }
  return json;
}