Topics class

A model representing a topic.

This class holds the details of a topic, including its name, ID, and any associated metadata.

Parameters: topicName - The name of the topic. topicId - The unique identifier of the topic. metaData - Additional metadata associated with the topic.

Constructors

Topics({String? topicName, String? topicId, dynamic metaData})
Initializes a new instance of the Topics class.
Topics.fromJson(Map<String, dynamic> json)
Creates a Topics instance from a JSON map.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
metaData ↔ dynamic
Additional metadata associated with the topic.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
topicId String?
The unique identifier of the topic.
getter/setter pair
topicName String?
The name of the topic.
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts an instance of Topics to a JSON map.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited