DescribeProvisionedProductOutput.fromJson constructor

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

Implementation

factory DescribeProvisionedProductOutput.fromJson(Map<String, dynamic> json) {
  return DescribeProvisionedProductOutput(
    cloudWatchDashboards: (json['CloudWatchDashboards'] as List?)
        ?.whereNotNull()
        .map((e) => CloudWatchDashboard.fromJson(e as Map<String, dynamic>))
        .toList(),
    provisionedProductDetail: json['ProvisionedProductDetail'] != null
        ? ProvisionedProductDetail.fromJson(
            json['ProvisionedProductDetail'] as Map<String, dynamic>)
        : null,
  );
}