toJson method

  1. @override
String toJson()
override

Return a JSON-storable representation of this message which can be interpolated at runtime.

Implementation

@override
String toJson() =>
    throw UnsupportedError('MainMessage.toJson requires a locale');