32 lines
703 B
Dart
32 lines
703 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')
|
|
int? custId;
|
|
@JsonKey(name: 'hq_id')
|
|
int? hqId;
|
|
@JsonKey(name: 'usr_id')
|
|
int? usrId;
|
|
@JsonKey(name: 'cr_id')
|
|
int? crId;
|
|
@JsonKey(name: 'sid')
|
|
String? sid;
|
|
@JsonKey(name: 'vht_id')
|
|
int? vhtId;
|
|
@JsonKey(name: 'loc_zip')
|
|
String? locZip;
|
|
|
|
Status({this.hqId, this.usrId, this.crId, this.sid, this.vhtId, this.locZip, this.custId});
|
|
|
|
factory Status.fromJson(Map<String, dynamic> json) => _$StatusFromJson(json);
|
|
|
|
Map<String, dynamic> toJson() => _$StatusToJson(this);
|
|
}
|