UpdateProjectDetails.fromJson constructor

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

Implementation

factory UpdateProjectDetails.fromJson(Map<String, Object?> json) {
  return UpdateProjectDetails(
    assigneeType: json[r'assigneeType'] != null
        ? UpdateProjectDetailsAssigneeType.fromValue(
            json[r'assigneeType']! as String)
        : null,
    avatarId: (json[r'avatarId'] as num?)?.toInt(),
    categoryId: (json[r'categoryId'] as num?)?.toInt(),
    description: json[r'description'] as String?,
    issueSecurityScheme: (json[r'issueSecurityScheme'] as num?)?.toInt(),
    key: json[r'key'] as String?,
    lead: json[r'lead'] as String?,
    leadAccountId: json[r'leadAccountId'] as String?,
    name: json[r'name'] as String?,
    notificationScheme: (json[r'notificationScheme'] as num?)?.toInt(),
    permissionScheme: (json[r'permissionScheme'] as num?)?.toInt(),
    url: json[r'url'] as String?,
  );
}