FaceDetection.fromJson constructor

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

Implementation

factory FaceDetection.fromJson(Map<String, dynamic> json) {
  return FaceDetection(
    face: json['Face'] != null
        ? FaceDetail.fromJson(json['Face'] as Map<String, dynamic>)
        : null,
    timestamp: json['Timestamp'] as int?,
  );
}