CreateElicitationResponseCancel.fromMap constructor

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

Implementation

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