fromJson static method

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

Implementation

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

  return GiftResalePriceGram(
    gramCentCount: (json['gram_cent_count'] as int?) ?? 0,
  );
}