workouttest_app/lib/model/customer_property.dart

20 lines
608 B
Dart

class CustomerProperty {
int propertyId;
int customerId;
DateTime dateAdd;
double propertyValue;
bool newData = false;
CustomerProperty({this.propertyId, this.customerId, this.dateAdd, this.propertyValue});
CustomerProperty.fromJson(Map json) {
this.propertyId = json['propertyId'];
this.customerId = json['customerId'];
this.dateAdd = json['propertyName'];
this.propertyValue = json['propertyValue'];
}
Map<String, dynamic> toJson() =>
{"propertyId": this.propertyId, "customerId": this.customerId, "dateAdd": this.dateAdd, "propertyValue": this.propertyValue};
}