ResourceShare.fromJson constructor
ResourceShare.fromJson(
- Map<String, dynamic> json
)
Implementation
factory ResourceShare.fromJson(Map<String, dynamic> json) {
return ResourceShare(
allowExternalPrincipals: json['allowExternalPrincipals'] as bool?,
creationTime: timeStampFromJson(json['creationTime']),
featureSet: (json['featureSet'] as String?)?.toResourceShareFeatureSet(),
lastUpdatedTime: timeStampFromJson(json['lastUpdatedTime']),
name: json['name'] as String?,
owningAccountId: json['owningAccountId'] as String?,
resourceShareArn: json['resourceShareArn'] as String?,
status: (json['status'] as String?)?.toResourceShareStatus(),
statusMessage: json['statusMessage'] as String?,
tags: (json['tags'] as List?)
?.whereNotNull()
.map((e) => Tag.fromJson(e as Map<String, dynamic>))
.toList(),
);
}