RoleAssistant.fromJson constructor

RoleAssistant.fromJson(
  1. Object? value
)

Implementation

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