DescribeDashboardPermissionsResponse.fromJson constructor

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

Implementation

factory DescribeDashboardPermissionsResponse.fromJson(
    Map<String, dynamic> json) {
  return DescribeDashboardPermissionsResponse(
    dashboardArn: json['DashboardArn'] as String?,
    dashboardId: json['DashboardId'] as String?,
    permissions: (json['Permissions'] as List?)
        ?.whereNotNull()
        .map((e) => ResourcePermission.fromJson(e as Map<String, dynamic>))
        .toList(),
    requestId: json['RequestId'] as String?,
  );
}