PaymentData.fromJson constructor

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

Implementation

PaymentData.fromJson(Map<String, dynamic> json) {
  id = json['id'];
  name = json['name'];
  label = json['label'];
  classNames = json['classNames'];
  defaultSelected = json['defaultSelected'];
  selectType = json['selectType'];
  if (json['attributes'] != null) {
    attributes = <Attributes>[];
    json['attributes'].forEach((v) {
      attributes!.add(new Attributes.fromJson(v));
    });
  }
  configs =
  json['configs'] != null ? new Configs.fromJson(json['configs']) : null;
  isExclusive = json['isExclusive'];
  componentType = json['componentType'];
  componentKey = json['componentKey'];
}