WooPaymentGatewayLinks.fromJson constructor

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

Implementation

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