DescribeDataSourcePermissionsResponse.fromJson constructor

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

Implementation

factory DescribeDataSourcePermissionsResponse.fromJson(
    Map<String, dynamic> json) {
  return DescribeDataSourcePermissionsResponse(
    dataSourceArn: json['DataSourceArn'] as String?,
    dataSourceId: json['DataSourceId'] as String?,
    permissions: (json['Permissions'] as List?)
        ?.whereNotNull()
        .map((e) => ResourcePermission.fromJson(e as Map<String, dynamic>))
        .toList(),
    requestId: json['RequestId'] as String?,
  );
}