Appearance.fromJson constructor
Appearance.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Appearance.fromJson(Map<String, dynamic> json) {
return Appearance(
colors: DynamicColors.fromJson(json['colors']),
shapes: Shapes.fromJson(json['shapes']),
primaryButton: PrimaryButton.fromJson(json['primaryButton']),
locale: json['locale'],
font: Font.fromJson(json['font']),
applePay: ApplePayParams.fromJson(json['applePay']),
googlePay: GPayParams.fromJson(json['googlePay']),
theme: stringToTheme(json['theme']),
);
}