ListProvisioningTemplatesResponse.fromJson constructor

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

Implementation

factory ListProvisioningTemplatesResponse.fromJson(
    Map<String, dynamic> json) {
  return ListProvisioningTemplatesResponse(
    nextToken: json['nextToken'] as String?,
    templates: (json['templates'] as List?)
        ?.whereNotNull()
        .map((e) =>
            ProvisioningTemplateSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}