DescribeThemePermissionsResponse.fromJson constructor

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

Implementation

factory DescribeThemePermissionsResponse.fromJson(Map<String, dynamic> json) {
  return DescribeThemePermissionsResponse(
    permissions: (json['Permissions'] as List?)
        ?.whereNotNull()
        .map((e) => ResourcePermission.fromJson(e as Map<String, dynamic>))
        .toList(),
    requestId: json['RequestId'] as String?,
    themeArn: json['ThemeArn'] as String?,
    themeId: json['ThemeId'] as String?,
  );
}