fromJson static method

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

Implementation

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

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