IssuesJqlMetaDataBean.fromJson constructor

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

Implementation

factory IssuesJqlMetaDataBean.fromJson(Map<String, Object?> json) {
  return IssuesJqlMetaDataBean(
    count: (json[r'count'] as num?)?.toInt() ?? 0,
    maxResults: (json[r'maxResults'] as num?)?.toInt() ?? 0,
    startAt: (json[r'startAt'] as num?)?.toInt() ?? 0,
    totalCount: (json[r'totalCount'] as num?)?.toInt() ?? 0,
    validationWarnings: (json[r'validationWarnings'] as List<Object?>?)
            ?.map((i) => i as String? ?? '')
            .toList() ??
        [],
  );
}