ElicitationPropertySchemaString.fromMap constructor

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

Implementation

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