32 lines
649 B
Dart
32 lines
649 B
Dart
import 'package:isar/isar.dart';
|
|
import 'package:json_annotation/json_annotation.dart';
|
|
|
|
part 'status.g.dart';
|
|
|
|
@collection
|
|
@JsonSerializable()
|
|
class Status {
|
|
final Id id = 0;
|
|
|
|
@JsonKey(name: 'cust_id')
|
|
late int custId;
|
|
@JsonKey(name: 'hq_id')
|
|
late int hqId;
|
|
@JsonKey(name: 'usr_id')
|
|
late int usrId;
|
|
@JsonKey(name: 'cr_id')
|
|
late int crId;
|
|
@JsonKey(name: 'sid')
|
|
late String sid;
|
|
@JsonKey(name: 'vht_id')
|
|
late int vhtId;
|
|
@JsonKey(name: 'loc_zip')
|
|
late String locZip;
|
|
|
|
Status();
|
|
|
|
factory Status.fromJson(Map<String, dynamic> json) => _$StatusFromJson(json);
|
|
|
|
Map<String, dynamic> toJson() => _$StatusToJson(this);
|
|
}
|