fromJson static method

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

Implementation

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

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