ListJobTemplatesResponse.fromJson constructor

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

Implementation

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