ForumTopics.fromJson constructor

ForumTopics.fromJson(
  1. Map<String, dynamic> json
)

Parse from a json

Implementation

factory ForumTopics.fromJson(Map<String, dynamic> json) => ForumTopics(
      totalCount: json['total_count'],
      topics: List<ForumTopic>.from((json['topics'] ?? [])
          .map((item) => ForumTopic.fromJson(item))
          .toList()),
      nextOffsetDate: json['next_offset_date'],
      nextOffsetMessageId: json['next_offset_message_id'],
      nextOffsetMessageThreadId: json['next_offset_message_thread_id'],
      extra: json['@extra'],
      clientId: json['@client_id'],
    );