toJson method

Implementation

@override
String toJson(URefreshSessionStatus object) => object.when(
      knownValue: (data) => data.value,
      unknownValue: (data) => data,
    );