DeleteAndReplaceVersionBean.fromJson constructor

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

Implementation

factory DeleteAndReplaceVersionBean.fromJson(Map<String, Object?> json) {
  return DeleteAndReplaceVersionBean(
    customFieldReplacementList:
        (json[r'customFieldReplacementList'] as List<Object?>?)
                ?.map((i) => CustomFieldReplacement.fromJson(
                    i as Map<String, Object?>? ?? const {}))
                .toList() ??
            [],
    moveAffectedIssuesTo: (json[r'moveAffectedIssuesTo'] as num?)?.toInt(),
    moveFixIssuesTo: (json[r'moveFixIssuesTo'] as num?)?.toInt(),
  );
}