@vendasta/conversation 0.49.0 → 0.50.0

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.
@@ -914,6 +914,9 @@ class MessageTemplate {
914
914
  static fromProto(proto) {
915
915
  let m = new MessageTemplate();
916
916
  m = Object.assign(m, proto);
917
+ if (proto.created) {
918
+ m.created = new Date(proto.created);
919
+ }
917
920
  return m;
918
921
  }
919
922
  constructor(kwargs) {
@@ -933,6 +936,9 @@ class MessageTemplate {
933
936
  if (typeof this.content !== 'undefined') {
934
937
  toReturn['content'] = this.content;
935
938
  }
939
+ if (typeof this.created !== 'undefined' && this.created !== null) {
940
+ toReturn['created'] = 'toApiJson' in this.created ? this.created.toApiJson() : this.created;
941
+ }
936
942
  return toReturn;
937
943
  }
938
944
  }