ElicitationContentValueInteger.fromJson constructor

ElicitationContentValueInteger.fromJson(
  1. Object? value
)

Implementation

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