Map<String, Object?> toJson() { var answers = this.answers; final json = <String, Object?>{}; if (answers != null) { json[r'answers'] = answers; } return json; }