IssueMatchesForJQL.fromJson constructor

IssueMatchesForJQL.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory IssueMatchesForJQL.fromJson(Map<String, Object?> json) {
  return IssueMatchesForJQL(
    errors: (json[r'errors'] as List<Object?>?)
            ?.map((i) => i as String? ?? '')
            .toList() ??
        [],
    matchedIssues: (json[r'matchedIssues'] as List<Object?>?)
            ?.map((i) => (i as num?)?.toInt() ?? 0)
            .toList() ??
        [],
  );
}