Topics.fromJson constructor

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

Creates a Topics instance from a JSON map.

This factory constructor is used to create an instance of Topics from a map structure representing JSON data. This is useful for deserializing JSON data retrieved from a database or an API.

Parameters: json - A map representing JSON data.

Returns: An instance of Topics.

Implementation

factory Topics.fromJson(Map<String, dynamic> json) => Topics(
      topicName: json["topicName"],
      topicId: json["topicId"],
      metaData: json["metaData"],
    );