ForumTopicResponse.from constructor

ForumTopicResponse.from({
  1. required int statusCode,
  2. required String reasonPhrase,
  3. required Map<String, String> headers,
  4. required int id,
  5. required String name,
  6. required String description,
  7. required String fromLanguage,
  8. required String learningLanguage,
  9. required String skillName,
  10. required List<int> includedTopicIds,
  11. required int troubleshootingId,
  12. required bool isAdmin,
  13. required bool isSubscribed,
  14. required List<Comment> comments,
  15. 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,
      );