GPayButtonStyle.fromJson constructor
Factory method to create a GPayButtonStyle from a JSON map.
Implementation
factory GPayButtonStyle.fromJson(Map<String, dynamic> json) {
return GPayButtonStyle(
light:
GPayButtonStyleType.values.firstWhere((e) => e.name == json['light']),
dark:
GPayButtonStyleType.values.firstWhere((e) => e.name == json['dark']),
);
}