ListFacesResponse.fromJson constructor

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

Implementation

factory ListFacesResponse.fromJson(Map<String, dynamic> json) {
  return ListFacesResponse(
    faceModelVersion: json['FaceModelVersion'] as String?,
    faces: (json['Faces'] as List?)
        ?.whereNotNull()
        .map((e) => Face.fromJson(e as Map<String, dynamic>))
        .toList(),
    nextToken: json['NextToken'] as String?,
  );
}