builder.id(json.id);
private void from(Object object) { if (object instanceof Resource) { Resource instance = (Resource) object; createdAt(instance.getCreatedAt()); putAllLinks(instance.getLinks()); id(instance.getId()); String updatedAtValue = instance.getUpdatedAt(); if (updatedAtValue != null) { updatedAt(updatedAtValue); } } if (object instanceof Task) { Task instance = (Task) object; diskInMb(instance.getDiskInMb()); Result resultValue = instance.getResult(); if (resultValue != null) { result(resultValue); } dropletId(instance.getDropletId()); memoryInMb(instance.getMemoryInMb()); name(instance.getName()); state(instance.getState()); sequenceId(instance.getSequenceId()); String commandValue = instance.getCommand(); if (commandValue != null) { command(commandValue); } } }