WooCouponLinks.fromJson constructor

WooCouponLinks.fromJson(
  1. Map<String, dynamic> json
)

Implementation

WooCouponLinks.fromJson(Map<String, dynamic> json) {
  if (json['self'] != null) {
    self = <Self>[];
    json['self'].forEach((v) {
      self!.add(new Self.fromJson(v));
    });
  }
  if (json['collection'] != null) {
    collection = <Collection>[];
    json['collection'].forEach((v) {
      collection!.add(new Collection.fromJson(v));
    });
  }
}