WooPaymentGateway.fromJson constructor
WooPaymentGateway.fromJson(
- Map<String, dynamic> json
)
Implementation
WooPaymentGateway.fromJson(Map<String, dynamic> json) {
id = json['id'];
title = json['title'];
description = json['description'];
order = json['order'];
enabled = json['enabled'];
methodTitle = json['method_title'];
methodDescription = json['method_description'];
methodSupports = json['method_supports'].cast<String>();
settings = json['settings'] != null
? new WooPaymentGatewaySettings.fromJson(json['settings'])
: null;
lLinks = json['_links'] != null
? new WooPaymentGatewayLinks.fromJson(json['_links'])
: null;
}