ForumTopicResponse.from constructor
ForumTopicResponse.from({
- required int statusCode,
- required String reasonPhrase,
- required Map<
String, String> headers, - required int id,
- required String name,
- required String description,
- required String fromLanguage,
- required String learningLanguage,
- required String skillName,
- required List<
int> includedTopicIds, - required int troubleshootingId,
- required bool isAdmin,
- required bool isSubscribed,
- required List<
Comment> comments, - required List<
Subtopic> subtopics,
Returns the new instance of ForumTopicResponse based on arguments.
Implementation
ForumTopicResponse.from({
required int statusCode,
required String reasonPhrase,
required Map<String, String> headers,
required this.id,
required this.name,
required this.description,
required this.fromLanguage,
required this.learningLanguage,
required this.skillName,
required this.includedTopicIds,
required this.troubleshootingId,
required this.isAdmin,
required this.isSubscribed,
required this.comments,
required this.subtopics,
}) : super.from(
status: Status.from(
code: statusCode,
reasonPhrase: reasonPhrase,
),
headers: headers,
);