ChangedWorklog.fromJson constructor

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

Implementation

factory ChangedWorklog.fromJson(Map<String, Object?> json) {
  return ChangedWorklog(
    properties: (json[r'properties'] as List<Object?>?)
            ?.map((i) => EntityProperty.fromJson(
                i as Map<String, Object?>? ?? const {}))
            .toList() ??
        [],
    updatedTime: (json[r'updatedTime'] as num?)?.toInt(),
    worklogId: (json[r'worklogId'] as num?)?.toInt(),
  );
}