DescribeImagePermissionsResult.fromJson constructor

DescribeImagePermissionsResult.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory DescribeImagePermissionsResult.fromJson(Map<String, dynamic> json) {
  return DescribeImagePermissionsResult(
    name: json['Name'] as String?,
    nextToken: json['NextToken'] as String?,
    sharedImagePermissionsList: (json['SharedImagePermissionsList'] as List?)
        ?.whereNotNull()
        .map(
            (e) => SharedImagePermissions.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}