CometChatCardTab.fromJson constructor
Deserializes a tab from its JSON representation.
Implementation
factory CometChatCardTab.fromJson(Map<String, dynamic> json) {
return CometChatCardTab(
label: json['label'] as String,
content: (json['content'] as List<dynamic>)
.map((e) => CometChatCardElement.fromJson(e as Map<String, dynamic>))
.toList(),
);
}