ProjectIssueCreateMetadata.fromJson constructor

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

Implementation

factory ProjectIssueCreateMetadata.fromJson(Map<String, Object?> json) {
  return ProjectIssueCreateMetadata(
    avatarUrls: json[r'avatarUrls'] != null
        ? AvatarUrlsBean.fromJson(
            json[r'avatarUrls']! as Map<String, Object?>)
        : null,
    expand: json[r'expand'] as String?,
    id: json[r'id'] as String?,
    issuetypes: (json[r'issuetypes'] as List<Object?>?)
            ?.map((i) => IssueTypeIssueCreateMetadata.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
    key: json[r'key'] as String?,
    name: json[r'name'] as String?,
    self: json[r'self'] as String?,
  );
}