PaymentGateway.fromMap constructor

PaymentGateway.fromMap(
  1. Map<String, dynamic> json
)

Implementation

factory PaymentGateway.fromMap(Map<String, dynamic> json) => PaymentGateway(
  name: json["name"],
  logo: json["logo"],
  validated: json["validated"],
  percent: json["percent"]?.toDouble(),
  surcharge: json["surcharge"],
  publicKey: json["public_key"],
  cappedAt: json["capped_at"],
  isDefault: json["is_default"],
  passCharges: json["pass_charges"],
  status: json["status"],
);