PersonDetection.fromJson constructor

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

Implementation

factory PersonDetection.fromJson(Map<String, dynamic> json) {
  return PersonDetection(
    person: json['Person'] != null
        ? PersonDetail.fromJson(json['Person'] as Map<String, dynamic>)
        : null,
    timestamp: json['Timestamp'] as int?,
  );
}