toJson method
Converts the object to a JSON representation.
Returns the JSON representation of the object.
Implementation
@override
Map<String, dynamic> toJson() {
return {
if (models != null) 'models': models,
if (fields != null) 'fields': fields,
};
}