RoleAssistant.fromJson constructor
RoleAssistant.fromJson(
- Object? value
Implementation
factory RoleAssistant.fromJson(Object? value) {
final decoded = Role.fromJson(value);
if (decoded is! RoleAssistant) {
throw const AcpWireDecodeException('Expected RoleAssistant.');
}
return decoded;
}