ListApprovalRuleTemplatesOutput.fromJson constructor

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

Implementation

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