fromJson static method

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

Implementation

static WalletBotBalance? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return WalletBotBalance(
    hasBalance: (json['has_balance'] as bool?) ?? false,
    url: (json['url'] as String?) ?? '',
  );
}