toProtoWithType method

ModeInfo toProtoWithType()

Implementation

PROTO.ModeInfo toProtoWithType() {
  // if (this.Multi != null)
  // {
  //     return new PROTO.ModeInfo()
  //     {
  //         multi = this.Multi.ToProtoWithType()
  //     };
  // }
  // else
  // {
  var mode = PROTO.ModeInfo();
  mode.single = single!.toProtoWithType();

  return mode;
  //}
}