toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
  if (this.identityId != null) {
    json[r'identityId'] = this.identityId;
  } else {
    json[r'identityId'] = null;
  }
  if (this.projectId != null) {
    json[r'projectId'] = this.projectId;
  } else {
    json[r'projectId'] = null;
  }
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.dailySinceDueMinusDays != null) {
    json[r'dailySinceDueMinusDays'] = this.dailySinceDueMinusDays;
  } else {
    json[r'dailySinceDueMinusDays'] = null;
  }
    json[r'singular'] = this.singular;
  return json;
}