fromJson static method

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

Implementation

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

  return GiftUpgradePrice(
    date: (json['date'] as int?) ?? 0,
    starCount: (json['star_count'] as int?) ?? 0,
  );
}