toJson method

Map<String, dynamic> toJson()

Converts this instance of StdMsg into a map that can be later used to serialize it as a JSON object.

Implementation

Map<String, dynamic> toJson() => {
      'type': type,
      'value': value,
    };