fromJson static method
- dynamic json
Implementation
static EmbeddedInfoUpdatedEvent fromJson(dynamic json) {
List<dynamic> pendingList = json['pending'] as List? ?? [];
List<EmbeddedInfo> embeddedInfos =
pendingList.map((item) => EmbeddedInfo(item['embeddedId'])).toList();
return EmbeddedInfoUpdatedEvent(embeddedInfos);
}