ApplePayParams.fromJson constructor
Factory method to create an ApplePayParams from a JSON map.
Implementation
factory ApplePayParams.fromJson(Map<String, dynamic> json) {
return ApplePayParams(
buttonType: json['buttonType'] != null
? ApplePayButtonType.values
.firstWhere((e) => e.name == json['buttonType'])
: null,
buttonStyle: json['buttonStyle'] != null
? ApplePayButtonStyle.fromJson(json['buttonStyle'])
: null,
);
}