CheckoutRequest.fromJson constructor

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

Implementation

CheckoutRequest.fromJson(Map<String?, dynamic> json) {
  clientID = json['clientID'];
  accessToken = json['accessToken'];
  value = json['value'];
  paymentCode = json['paymentCode'];
  installments = json['installments'];
  email = json['email'];
  merchantCode = json['merchantCode'];
  reference = json['reference'];
  if (json['items'] != null) {
    items = new List<Item>.empty(growable: true);
    json['items'].forEach((item) {
      items!.add(new Item.fromJson(item));
    });
  }
}