ElicitationContentValueNumber.fromJson constructor

ElicitationContentValueNumber.fromJson(
  1. Object? value
)

Implementation

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