convertTokenResponseToJson function

String convertTokenResponseToJson(
  1. String? str
)

Converts a nullable JSON string into a JSON string representation of an UpdateTokenResponse, or returns an empty string if null or empty.

str: The nullable JSON string to convert. Returns a JSON string representation of the UpdateTokenResponse if str is valid; otherwise, an empty string.

Implementation

String convertTokenResponseToJson(String? str) => (str == null || str.isEmpty)
    ? ""
    : updateTokenResponseToJson(updateTokenResponseFromJson(str));