SupaValue<B extends SupaCore, T, J> constructor

const SupaValue<B extends SupaCore, T, J>({
  1. required T value,
  2. required String name,
  3. required J valueToJSON(
    1. T value
    )?,
  4. required T valueFromJSON(
    1. J value
    )?,
})

Represents a value that is stored within a record from a Supabase table.

B is the core class for the table.

T is the type of the value after conversion from the JSON.

J is the type of the value before conversion from the JSON.

Implementation

const SupaValue({
  required this.value,
  required this.name,
  required this.valueToJSON,
  required this.valueFromJSON,
});