SearchForumResponse.from constructor

SearchForumResponse.from({
  1. required int statusCode,
  2. required String reasonPhrase,
  3. required Map<String, String> headers,
  4. required List<SearchedForum> forums,
})

Returns the new instance of SearchForumResponse based on arguments.

Implementation

SearchForumResponse.from({
  required int statusCode,
  required String reasonPhrase,
  required Map<String, String> headers,
  required this.forums,
}) : super.from(
        status: Status.from(
          code: statusCode,
          reasonPhrase: reasonPhrase,
        ),
        headers: headers,
      );