IssueRankRequestBean.fromJson constructor

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

Implementation

factory IssueRankRequestBean.fromJson(Map<String, Object?> json) {
  return IssueRankRequestBean(
    issues: (json[r'issues'] as List<Object?>?)
            ?.map((i) => i as String? ?? '')
            .toList() ??
        [],
    rankBeforeIssue: json[r'rankBeforeIssue'] as String?,
    rankAfterIssue: json[r'rankAfterIssue'] as String?,
    rankCustomFieldId: (json[r'rankCustomFieldId'] as num?)?.toInt(),
  );
}