PartialMatch.fromJson constructor

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

Implementation

factory PartialMatch.fromJson(Map<String, dynamic> json) {
  return PartialMatch(
    reference: json['Reference'] as String?,
    targetViolationReasons: (json['TargetViolationReasons'] as List?)
        ?.whereNotNull()
        .map((e) => e as String)
        .toList(),
  );
}