toJson method

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

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,
  };
}