PdaStation.dart
728 Bytes
import 'package:json_annotation/json_annotation.dart';
part 'PdaStation.g.dart';
@JsonSerializable()
class PdaStation {
String site;
bool isPallet; //是否有托盘
bool isAlarm; // 是否报警
int taskNo;
String wONumber;
String serialNumber;
String productCode;
int wcsProductType;
bool isNG;
String nGcode;
bool isInvalid;
int status;
PdaStation(this.site, this.isPallet, this.isAlarm, this.taskNo, this.wONumber,
this.serialNumber, this.productCode, this.wcsProductType, this.isNG,
this.nGcode, this.isInvalid, this.status);
factory PdaStation.fromJson(Map<String, dynamic> json) => _$PdaStationFromJson(json);
Map<String, dynamic> toJson() => _$PdaStationToJson(this);
}