ChangedWorklogs.fromJson constructor

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

Implementation

factory ChangedWorklogs.fromJson(Map<String, Object?> json) {
  return ChangedWorklogs(
    lastPage: json[r'lastPage'] as bool? ?? false,
    nextPage: json[r'nextPage'] as String?,
    self: json[r'self'] as String?,
    since: (json[r'since'] as num?)?.toInt(),
    until: (json[r'until'] as num?)?.toInt(),
    values: (json[r'values'] as List<Object?>?)
            ?.map((i) => ChangedWorklog.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
  );
}