fromJson static method

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

Implementation

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

  return UpgradedGiftAttributeRarityPerMille(
    perMille: (json['per_mille'] as int?) ?? 0,
  );
}