@vendasta/developer-training 0.12.2 → 0.12.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -339,6 +339,9 @@ class TKabakovAddToDoItemRequest {
339
339
  static fromProto(proto) {
340
340
  let m = new TKabakovAddToDoItemRequest();
341
341
  m = Object.assign(m, proto);
342
+ if (proto.dueDate) {
343
+ m.dueDate = new Date(proto.dueDate);
344
+ }
342
345
  return m;
343
346
  }
344
347
  constructor(kwargs) {
@@ -355,6 +358,9 @@ class TKabakovAddToDoItemRequest {
355
358
  if (typeof this.description !== 'undefined') {
356
359
  toReturn['description'] = this.description;
357
360
  }
361
+ if (typeof this.dueDate !== 'undefined' && this.dueDate !== null) {
362
+ toReturn['dueDate'] = 'toApiJson' in this.dueDate ? this.dueDate.toApiJson() : this.dueDate;
363
+ }
358
364
  return toReturn;
359
365
  }
360
366
  }