ListChildrenResponse.fromJson constructor

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

Implementation

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