if (data.has("alertBody"))
b.alertBody(data.getString("alertBody"));
if (data.has("badge"))
b.badge(data.getInt("badge"));
if (data.has("sound"))
b.sound(data.getString("sound"));
} catch (JSONException e) {
throw new InvalidArgumentServiceException("data", e.getMessage());
}
return b.build();