Version.fromJson constructor
Implementation
factory Version.fromJson(Map<String, Object?> json) {
return Version(
archived: json[r'archived'] as bool? ?? false,
description: json[r'description'] as String?,
expand: json[r'expand'] as String?,
id: json[r'id'] as String?,
issuesStatusForFixVersion: json[r'issuesStatusForFixVersion'] != null
? VersionIssuesStatus.fromJson(
json[r'issuesStatusForFixVersion']! as Map<String, Object?>)
: null,
moveUnfixedIssuesTo: json[r'moveUnfixedIssuesTo'] as String?,
name: json[r'name'] as String?,
operations: (json[r'operations'] as List<Object?>?)
?.map((i) =>
SimpleLink.fromJson(i as Map<String, Object?>? ?? const {}))
.toList() ??
[],
overdue: json[r'overdue'] as bool? ?? false,
project: json[r'project'] as String?,
projectId: (json[r'projectId'] as num?)?.toInt(),
releaseDate: json[r'releaseDate'] as String?,
released: json[r'released'] as bool? ?? false,
self: json[r'self'] as String?,
startDate: json[r'startDate'] as String?,
userReleaseDate: json[r'userReleaseDate'] as String?,
userStartDate: json[r'userStartDate'] as String?,
);
}