ResourceShareInvitation.fromJson constructor
ResourceShareInvitation.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ResourceShareInvitation.fromJson(Map<String, dynamic> json) {
return ResourceShareInvitation(
invitationTimestamp: timeStampFromJson(json['invitationTimestamp']),
receiverAccountId: json['receiverAccountId'] as String?,
resourceShareArn: json['resourceShareArn'] as String?,
resourceShareAssociations: (json['resourceShareAssociations'] as List?)
?.whereNotNull()
.map((e) =>
ResourceShareAssociation.fromJson(e as Map<String, dynamic>))
.toList(),
resourceShareInvitationArn: json['resourceShareInvitationArn'] as String?,
resourceShareName: json['resourceShareName'] as String?,
senderAccountId: json['senderAccountId'] as String?,
status: (json['status'] as String?)?.toResourceShareInvitationStatus(),
);
}