write method

void write(
  1. TProtocol oprot
)
override

Writes the objects out to the oprot protocol.

Implementation

write(TProtocol oprot) {
  validate();

  oprot.writeStructBegin(_STRUCT_DESC);
  if (this.coordListList != null) {
    oprot.writeFieldBegin(_COORD_LIST_LIST_FIELD_DESC);
    {
      oprot.writeListBegin(new TList(TType.LIST, this.coordListList?.length));
      for (var elem36 in this.coordListList ?? []) {
        {
          oprot.writeListBegin(new TList(TType.STRUCT, elem36.length));
          for (var elem37 in elem36) {
            elem37.write(oprot);
          }
          oprot.writeListEnd();
        }
      }
      oprot.writeListEnd();
    }
    oprot.writeFieldEnd();
  }
  oprot.writeFieldStop();
  oprot.writeStructEnd();
}