fromJson static method
Returns a new EntityMatchDescriptor instance and imports its values from
value if it's a Map, null otherwise.
Implementation
// ignore: prefer_constructors_over_static_methods
static EntityMatchDescriptor fromJson(dynamic value) {
if (value is Map) {
final json = value.cast<String, dynamic>();
return EntityMatchDescriptor(
matchType: mapValueOfType<String>(json, r'MatchType'),
targetEntityId: mapValueOfType<int>(json, r'TargetEntityId'),
targetEntity: EntityBase.fromJson(json[r'TargetEntity']),
percentConfidence: mapValueOfType<int>(json, r'PercentConfidence'),
);
}
return null;
}