fromJson static method

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

Implementation

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

  return InputProfileShareThemeUpgradedGift(
    receivedGiftId: (json['received_gift_id'] as String?) ?? '',
  );
}