ChannelExpiredEvent.fromMap constructor

ChannelExpiredEvent.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory ChannelExpiredEvent.fromMap(Map<String, dynamic> map) {
  return ChannelExpiredEvent(
    channelId: map['channelId'] as String,
    observedBy: map['observedBy'] as String,
    settlementOrRefundTxId: map['settlementOrRefundTxId'] as String?,
    eventId: map['eventId'] as String?,
    timestamp: ChannelEvent._parseTimestamp(map['timestamp']),
    version: map['version'] as int?,
    metadata: map['metadata'] as Map<String, dynamic>?,
  );
}