ChannelRequestedEvent.fromMap constructor
ChannelRequestedEvent.fromMap(
- Map<String, dynamic> map
)
Implementation
factory ChannelRequestedEvent.fromMap(Map<String, dynamic> map) {
return ChannelRequestedEvent(
channelId: map['channelId'] as String,
walletId: map['walletId'] as String,
clientPeerId: map['clientPeerId'] as String,
serverPeerId: map['serverPeerId'] as String,
clientPubKeyHex: map['clientPubKeyHex'] as String,
clientAddressB58: map['clientAddressB58'] as String,
derivationIndex: map['derivationIndex'] as int,
fundingAmountSats: BigInt.parse(map['fundingAmountSats'] as String),
lockTimeUnix: map['lockTimeUnix'] as int,
context: map['context'] as String?,
eventId: map['eventId'] as String?,
timestamp: ChannelEvent._parseTimestamp(map['timestamp']),
version: map['version'] as int?,
metadata: map['metadata'] as Map<String, dynamic>?,
);
}