IdentificationResult.fromMap constructor
IdentificationResult.fromMap(
- Map map
Parse result from platform callback
Implementation
factory IdentificationResult.fromMap(Map<dynamic, dynamic> map) {
return IdentificationResult(
identified: map['identified'] as bool? ?? false,
customId: map['customId'] as String? ?? '',
confidence: (map['confidence'] as num?)?.toDouble() ?? 0.0,
distance: (map['distance'] as num?)?.toDouble() ?? 0.0,
imagePath: map['imagePath'] as String?,
);
}