in library/src/main/java/com/theguardian/bridget/thrift/Epic.java [616:644]
public void write(org.apache.thrift.protocol.TProtocol oprot, Epic struct) throws org.apache.thrift.TException {
struct.validate();
oprot.writeStructBegin(STRUCT_DESC);
if (struct.title != null) {
oprot.writeFieldBegin(TITLE_FIELD_DESC);
oprot.writeString(struct.title);
oprot.writeFieldEnd();
}
if (struct.body != null) {
oprot.writeFieldBegin(BODY_FIELD_DESC);
oprot.writeString(struct.body);
oprot.writeFieldEnd();
}
if (struct.firstButton != null) {
oprot.writeFieldBegin(FIRST_BUTTON_FIELD_DESC);
oprot.writeString(struct.firstButton);
oprot.writeFieldEnd();
}
if (struct.secondButton != null) {
if (struct.isSetSecondButton()) {
oprot.writeFieldBegin(SECOND_BUTTON_FIELD_DESC);
oprot.writeString(struct.secondButton);
oprot.writeFieldEnd();
}
}
oprot.writeFieldStop();
oprot.writeStructEnd();
}