DescribeTemplatePermissionsResponse.fromJson constructor

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

Implementation

factory DescribeTemplatePermissionsResponse.fromJson(
    Map<String, dynamic> json) {
  return DescribeTemplatePermissionsResponse(
    permissions: (json['Permissions'] as List?)
        ?.whereNotNull()
        .map((e) => ResourcePermission.fromJson(e as Map<String, dynamic>))
        .toList(),
    requestId: json['RequestId'] as String?,
    templateArn: json['TemplateArn'] as String?,
    templateId: json['TemplateId'] as String?,
  );
}