toJson method

Implementation

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