DataMatchResult constructor

DataMatchResult(
  1. Map<String, dynamic> nativeDataMatchResult
)

Represents the result of the data match.

Implementation

DataMatchResult(Map<String, dynamic> nativeDataMatchResult) {
  overallState = enumFromValue(
    DataMatchState.values,
    nativeDataMatchResult["overallState"],
  );
  states =
      nativeDataMatchResult["states"] != null
          ? (nativeDataMatchResult["states"] as List<dynamic>)
              .map(
                (item) =>
                    DataMatchResultField(Map<String, dynamic>.from(item)),
              )
              .toList()
          : null;
}