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