toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.code != null) {
    json[r'code'] = this.code;
  } else {
    json[r'code'] = null;
  }
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.signed != null) {
    json[r'signed'] = this.signed;
  } else {
    json[r'signed'] = null;
  }
  if (this.why != null) {
    json[r'why'] = this.why;
  } else {
    json[r'why'] = null;
  }
  return json;
}