fromJson static method

EmbeddedInfoUpdatedEvent fromJson(
  1. 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);
}