write method
Implementation
write(TProtocol oprot) {
oprot.writeStructBegin(_struct);
if (message != null && message!.isNotEmpty) {
oprot.writeFieldBegin(_messageField);
oprot.writeString(message ?? '');
oprot.writeFieldEnd();
}
oprot.writeFieldBegin(_typeField);
oprot.writeI32(type ?? 0);
oprot.writeFieldEnd();
oprot.writeFieldStop();
oprot.writeStructEnd();
}