fromJson static method

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

Implementation

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

  return GiftResaleParameters(
    starCount: (json['star_count'] as int?) ?? 0,
    gramCentCount: (json['gram_cent_count'] as int?) ?? 0,
    gramOnly: (json['gram_only'] as bool?) ?? false,
  );
}