toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'id'] = this.id;
    json[r'userId'] = this.userId;
    json[r'inboxId'] = this.inboxId;
    json[r'jobId'] = this.jobId;
    json[r'groupId'] = this.groupId;
    json[r'triggerId'] = this.triggerId;
    json[r'status'] = this.status;
    json[r'sendAtTimestamp'] = this.sendAtTimestamp.toUtc().toIso8601String();
    json[r'createdAt'] = this.createdAt.toUtc().toIso8601String();
    json[r'updatedAt'] = this.updatedAt.toUtc().toIso8601String();
  return json;
}