TF-4169 Create Labels capability and Label object

This commit is contained in:
dab246
2025-11-24 09:52:27 +07:00
committed by Dat H. Pham
parent 1f9f0af79f
commit 8da5cbe98e
7 changed files with 493 additions and 6 deletions
@@ -0,0 +1,12 @@
import 'package:json_annotation/json_annotation.dart';
import 'package:labels/model/hex_color.dart';
class HexColorNullableConverter implements JsonConverter<HexColor?, String?> {
const HexColorNullableConverter();
@override
HexColor? fromJson(String? json) => json != null ? HexColor(json) : null;
@override
String? toJson(HexColor? object) => object?.value;
}