fromJson static method

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

Implementation

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

  return UpgradedGiftAttributeIdSymbol(
    stickerId: (json['sticker_id'] is int
            ? json['sticker_id'] as int
            : int.tryParse(json['sticker_id']?.toString() ?? '')) ??
        0,
  );
}