IssuingNetworkTokenNetworkData.fromJson constructor

IssuingNetworkTokenNetworkData.fromJson(
  1. Object? json
)

Implementation

factory IssuingNetworkTokenNetworkData.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return IssuingNetworkTokenNetworkData(
    device: map['device'] == null
        ? null
        : IssuingNetworkTokenDevice.fromJson(map['device']),
    mastercard: map['mastercard'] == null
        ? null
        : IssuingNetworkTokenMastercard.fromJson(map['mastercard']),
    type: IssuingTokenNetwork.fromJson(map['type']),
    visa: map['visa'] == null
        ? null
        : IssuingNetworkTokenVisa.fromJson(map['visa']),
    walletProvider: map['wallet_provider'] == null
        ? null
        : IssuingNetworkTokenWalletProvider.fromJson(map['wallet_provider']),
  );
}