Permalink
Branch: master
Find file Copy path
43daaaa Jul 7, 2018
1 contributor

Users who have contributed to this file

33 lines (28 sloc) 550 Bytes
class Shape{
String shapeName;
Property property;
Shape({
this.shapeName,
this.property
});
factory Shape.fromJson(Map<String, dynamic> parsedJson){
return Shape(
shapeName: parsedJson['shape_name'],
property: Property.fromJson(parsedJson['property'])
);
}
}
class Property{
double width;
double breadth;
Property({
this.width,
this.breadth
});
factory Property.fromJson(Map<String, dynamic> json){
return Property(
width: json['width'],
breadth: json['breadth']
);
}
}