toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'type'] = this.type;
  if (this.title != null) {
    json[r'title'] = this.title;
  } else {
    json[r'title'] = null;
  }
  if (this.detail != null) {
    json[r'detail'] = this.detail;
  } else {
    json[r'detail'] = null;
  }
  if (this.instance != null) {
    json[r'instance'] = this.instance;
  } else {
    json[r'instance'] = null;
  }
  return json;
}