fromJson static method

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

Implementation

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

  return PushMessageContentUpgradedGift(
    isUpgrade: (json['is_upgrade'] as bool?) ?? false,
    isPrepaidUpgrade: (json['is_prepaid_upgrade'] as bool?) ?? false,
  );
}