toJson method

Map<String, dynamic> toJson()
inherited

Convert the model instance to JSON.

This returns a map that is safe to pass to jsonEncode().

Implementation

Map<String, dynamic> toJson() => _toJsonEncodableMap(toMap());