toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() {
  Map<String, dynamic> map = {};
  if (title != null) {
    map['title'] = title!.toJson();
  }
  if (subtitle != null) {
    map['subtitle'] = subtitle!.toJson();
  }
  if (description != null) {
    map['description'] = description!.toJson();
  }
  if (properties != null) {
    map['properties'] = properties!.map((e) => e.toJson()).toList();
  }
  return map;
}