BankCardInfo.fromJson constructor

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

Parse from a json

Implementation

factory BankCardInfo.fromJson(Map<String, dynamic> json) => BankCardInfo(
      title: json['title'],
      actions: List<BankCardActionOpenUrl>.from((json['actions'] ?? [])
          .map((item) => BankCardActionOpenUrl.fromJson(item))
          .toList()),
      extra: json['@extra'],
      clientId: json['@client_id'],
    );