| 123456789101112131415161718192021 |
- import 'package:json_annotation/json_annotation.dart';
- part 'rfid_model.g.dart';
- @JsonSerializable()
- class RfidModel{
- String uid;
- int count;
- RfidModel({
- required this.uid,
- this.count = 0,
- });
- factory RfidModel.fromJson(Map<String, dynamic> json) =>
- _$RfidModelFromJson(json);
- Map<String, dynamic> toJson() => _$RfidModelToJson(this);
- }
|