fromJson static method

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

Implementation

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

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