toJson method
Returns a Json i.e. Map<String, dynamic>
representation of the BaseModel.
Implementation
@override
Map<String, dynamic> toJson({
defaultValue,
bool includeNulls = false,
}) {
final withNulls = this._data.mapWithDefault(defaultValue);
return includeNulls ? withNulls : withNulls.nonNulls;
}