toJson method
Implementation
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = <String, dynamic>{};
data["name"] = name;
if (list != null) {
final v = list;
final arr0 = [];
for (var v in v!) {
arr0.add(v!.toJson());
}
data["list"] = arr0;
}
return data;
}