BankButton.fromJson constructor

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

Implementation

factory BankButton.fromJson(Map<String, dynamic> json) {
  return BankButton(
    backgroundColor: json['background_color'] ?? '',
    textPrimary: json['text_primary'] ?? '',
    textSecondary: json['text_secondary'] ?? '',
  );
}