fromJson static method

EntityMatchInfo fromJson(
  1. dynamic value
)

Returns a new EntityMatchInfo instance and imports its values from value if it's a Map, null otherwise.

Implementation

// ignore: prefer_constructors_over_static_methods
static EntityMatchInfo fromJson(dynamic value) {
  if (value is Map) {
    final json = value.cast<String, dynamic>();
    return EntityMatchInfo(
      sourceEntityId: mapValueOfType<int>(json, r'SourceEntityId'),
      sourceEntity: EntityBase.fromJson(json[r'SourceEntity']),
      matches: EntityMatchDescriptor.listFromJson(json[r'Matches']),
    );
  }
  return null;
}