toJson method
Implementation
@override
Map<String, dynamic> toJson() {
final map = <String, dynamic>{};
if (abstract) {
map["abstract"] = abstract;
}
if (baseType != null && baseType!.isNotEmpty) {
map["extends"] = baseType;
}
if (properties != null && properties!.isNotEmpty) {
final props = <String, dynamic>{};
map["properties"] = props;
for (var key in properties!.keys) {
props[key] = properties![key]!.getValueType();
}
}
return map;
}