EventInfo.fromJson constructor

EventInfo.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory EventInfo.fromJson(Map<String, dynamic> json) {
  List<String> topic = List<String>.from(json['topic'].map((e) => e));
  EventInfoValue value = EventInfoValue.fromJson(json['value']);
  return EventInfo(json['type'], json['ledger'], json['ledgerClosedAt'],
      json['contractId'], json['id'], json['pagingToken'], topic, value);
}