AuthenticateResponseType.fromJsonString constructor

AuthenticateResponseType.fromJsonString(
  1. String jsonString
)

Constructs a new instance from a JSON string.

Implementation

factory AuthenticateResponseType.fromJsonString(String jsonString) {
  final decoded = jsonDecode(jsonString);
  if (decoded is! Map<String, dynamic>) {
    throw FormatException('Expected JSON object, got ${decoded.runtimeType}');
  }
  return AuthenticateResponseType.fromJson(decoded);
}