|
|
|
|
@ -1,3 +1,5 @@
|
|
|
|
|
import 'package:test_sa/models/lookup.dart';
|
|
|
|
|
|
|
|
|
|
class CallRequestForWorkOrder {
|
|
|
|
|
int id;
|
|
|
|
|
String callNo;
|
|
|
|
|
@ -71,11 +73,11 @@ class Asset {
|
|
|
|
|
String ipAddress;
|
|
|
|
|
String macAddress;
|
|
|
|
|
String portNumber;
|
|
|
|
|
String assetReplace;
|
|
|
|
|
Lookup assetReplace;
|
|
|
|
|
String oldAsset;
|
|
|
|
|
bool isParent;
|
|
|
|
|
Lookup isParent;
|
|
|
|
|
String parentAsset;
|
|
|
|
|
int assetType;
|
|
|
|
|
Lookup assetType;
|
|
|
|
|
Site site;
|
|
|
|
|
Building building;
|
|
|
|
|
String floor;
|
|
|
|
|
@ -171,11 +173,11 @@ class Asset {
|
|
|
|
|
ipAddress = json['ipAddress'];
|
|
|
|
|
macAddress = json['macAddress'];
|
|
|
|
|
portNumber = json['portNumber'];
|
|
|
|
|
assetReplace = json['assetReplace'];
|
|
|
|
|
assetReplace = json['assetReplace'] != null ? Lookup.fromJson(json['assetReplace']) : null;
|
|
|
|
|
oldAsset = json['oldAsset'];
|
|
|
|
|
isParent = json['isParent'];
|
|
|
|
|
isParent = json['isParent'] != null ? Lookup.fromJson(json['isParent']) : null;
|
|
|
|
|
parentAsset = json['parentAsset'];
|
|
|
|
|
assetType = json['assetType'];
|
|
|
|
|
assetType = json['assetType'] != null ? Lookup.fromJson(json['assetType']) : null;
|
|
|
|
|
site = json['site'] != null ? new Site.fromJson(json['site']) : null;
|
|
|
|
|
building = json['building'];
|
|
|
|
|
floor = json['floor'];
|
|
|
|
|
|