Handshake.fromJson constructor
Handshake.fromJson(
- Map<String, dynamic> json
)
Implementation
factory Handshake.fromJson(Map<String, dynamic> json) {
return Handshake(
action: (json['Action'] as String?)?.toActionType(),
arn: json['Arn'] as String?,
expirationTimestamp: timeStampFromJson(json['ExpirationTimestamp']),
id: json['Id'] as String?,
parties: (json['Parties'] as List?)
?.whereNotNull()
.map((e) => HandshakeParty.fromJson(e as Map<String, dynamic>))
.toList(),
requestedTimestamp: timeStampFromJson(json['RequestedTimestamp']),
resources: (json['Resources'] as List?)
?.whereNotNull()
.map((e) => HandshakeResource.fromJson(e as Map<String, dynamic>))
.toList(),
state: (json['State'] as String?)?.toHandshakeState(),
);
}