ElicitationPropertySchemaInteger.fromMap constructor

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

Implementation

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