LinkIssueRequestJsonBean.fromJson constructor

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

Implementation

factory LinkIssueRequestJsonBean.fromJson(Map<String, Object?> json) {
  return LinkIssueRequestJsonBean(
    comment: json[r'comment'] != null
        ? Comment.fromJson(json[r'comment']! as Map<String, Object?>)
        : null,
    inwardIssue: LinkedIssue.fromJson(
        json[r'inwardIssue'] as Map<String, Object?>? ?? const {}),
    outwardIssue: LinkedIssue.fromJson(
        json[r'outwardIssue'] as Map<String, Object?>? ?? const {}),
    type: IssueLinkType.fromJson(
        json[r'type'] as Map<String, Object?>? ?? const {}),
  );
}