You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
cloudsolutions-atoms/lib/modules/asset_delivery_module/models/cost_center_model.dart

28 lines
597 B
Dart

import 'package:test_sa/models/lookup.dart';
class CostCenterModel {
Lookup? costCenter;
double? quantity;
CostCenterModel({
this.costCenter,
this.quantity,
});
CostCenterModel.fromJson(Map<String, dynamic> json) {
costCenter = json['costCenter'] != null
? Lookup.fromJson(json['costCenter'])
: null;
quantity = json['quantity'];
}
Map<String, dynamic> toJson() {
final Map<String, dynamic> data = {};
if (costCenter != null) {
data['costCenter'] = costCenter!.toJson();
}
data['quantity'] = quantity;
return data;
}
}