WooProductReviewLinks.fromJson constructor
WooProductReviewLinks.fromJson(
- Map<String, dynamic> json
)
Implementation
WooProductReviewLinks.fromJson(Map<String, dynamic> json) {
if (json['self'] != null) {
self = [];
json['self'].forEach((v) {
self!.add(new WooProductReviewSelf.fromJson(v));
});
}
if (json['collection'] != null) {
collection = [];
json['collection'].forEach((v) {
collection!.add(new WooProductReviewCollection.fromJson(v));
});
}
if (json['up'] != null) {
up = [];
json['up'].forEach((v) {
up!.add(new WooProductReviewUp.fromJson(v));
});
}
}