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