ListScriptsOutput.fromJson constructor

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

Implementation

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