toJson method

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

Converts the object to a JSON-compatible map.

Implement this method in classes that use this mixin to provide custom serialization to JSON.

Implementation

@override
Map<String, dynamic> toJson() => _$ServerNotificationModelToJson(this);