ambito/lib/src/domain/entity/general/id_value/id_value.dart

19 lines
372 B
Dart
Raw Normal View History

2024-09-18 15:07:08 +02:00
import 'package:isar/isar.dart';
import 'package:json_annotation/json_annotation.dart';
part 'id_value.g.dart';
@JsonSerializable(explicitToJson: true)
@embedded
class IdValue {
IdValue();
int? id;
String? value;
factory IdValue.fromJson(Map<String, dynamic> json) =>
_$IdValueFromJson(json);
Map<String, dynamic> toJson() => _$IdValueToJson(this);
}