CreateElicitationRequestUnknown.fromMap constructor

CreateElicitationRequestUnknown.fromMap(
  1. Map<Object?, Object?> value
)

Implementation

factory CreateElicitationRequestUnknown.fromMap(Map<Object?, Object?> value) {
  final decoded = CreateElicitationRequest.fromMap(value);
  if (decoded is! CreateElicitationRequestUnknown) {
    throw const AcpWireDecodeException(
      'Expected CreateElicitationRequestUnknown.',
    );
  }
  return decoded;
}