LiteMessage.fromJson constructor
Creates a LiteMessage from a JSON map.
Implementation
factory LiteMessage.fromJson(Map<String, dynamic> json) => LiteMessage(
id: json['id'] as String,
from: json['from'] as String,
parts: (json['parts'] as List<dynamic>)
.map((e) => LiteGenPart.fromJson(e))
.toList(),
sessionId: json['sessionId'] as String,
);