fromJson static method

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

Implementation

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

  return UpgradedGiftSymbolCount(
    symbol:
        UpgradedGiftSymbol.fromJson(json['symbol'] as Map<String, dynamic>?)!,
    totalCount: (json['total_count'] as int?) ?? 0,
  );
}