toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'_id'] = this.id;
    json[r'tenantId'] = this.tenantId;
    json[r'userId'] = this.userId;
    json[r'firstCommentId'] = this.firstCommentId;
    json[r'firstCommentDate'] = this.firstCommentDate.toUtc().toIso8601String();
  if (this.autoTrustFactor != null) {
    json[r'autoTrustFactor'] = this.autoTrustFactor;
  } else {
    json[r'autoTrustFactor'] = null;
  }
  if (this.manualTrustFactor != null) {
    json[r'manualTrustFactor'] = this.manualTrustFactor;
  } else {
    json[r'manualTrustFactor'] = null;
  }
    json[r'progress'] = this.progress;
  if (this.tosAcceptedAt != null) {
    json[r'tosAcceptedAt'] = this.tosAcceptedAt!.toUtc().toIso8601String();
  } else {
    json[r'tosAcceptedAt'] = null;
  }
  return json;
}