toJson method

String toJson()

Implementation

String toJson() {
  return json
      .encode(serializers.serializeWith(NetworkState.serializer, this));
}