toJson method

  1. @visibleForTesting
Map<String, dynamic> toJson()

Implementation

@visibleForTesting
Map<String, dynamic> toJson() => {
      "passed": passed,
      "match": match?.toJson(),
      "error": error?.toJson(),
    }.clearNulls();