RegisterResponseType.fromJsonString constructor
RegisterResponseType.fromJsonString(
- String jsonString
Constructs a new instance from a JSON string.
Implementation
factory RegisterResponseType.fromJsonString(String jsonString) {
final decoded = jsonDecode(jsonString);
if (decoded is! Map<String, dynamic>) {
throw FormatException('Expected JSON object, got ${decoded.runtimeType}');
}
return RegisterResponseType.fromJson(decoded);
}