toJson method

Map<String, Object?> toJson()

Returns the model as a json object.

Implementation

Map<String, Object?> toJson() => {'name': name};