TokenRow.fromJson constructor

TokenRow.fromJson(
  1. Map<String, dynamic> json, {
  2. ValueSerializer? serializer,
})

Implementation

factory TokenRow.fromJson(Map<String, dynamic> json,
    {ValueSerializer? serializer}) {
  serializer ??= driftRuntimeOptions.defaultSerializer;
  return TokenRow(
    userId: serializer.fromJson<String>(json['userId']),
    credentials: serializer.fromJson<String>(json['credentials']),
  );
}