mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-11-14 04:33:16 +00:00
c0d8d37989
- Remove unused breaking isHidden field - Add commentary for Hetzner Volume replicating Hetzner documentation - Update router.gr (when i ran build_runner this file changed for some reason) Co-authored-by: NaiJi <naijiworld@protonmail.com> Reviewed-on: https://git.selfprivacy.org/SelfPrivacy/selfprivacy.org.app/pulls/232 Reviewed-by: Inex Code <inex.code@selfprivacy.org>
47 lines
1.7 KiB
Dart
47 lines
1.7 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'server_job.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
ServerJob _$ServerJobFromJson(Map<String, dynamic> json) => ServerJob(
|
|
name: json['name'] as String,
|
|
description: json['description'] as String,
|
|
status: $enumDecode(_$JobStatusEnumEnumMap, json['status']),
|
|
uid: json['uid'] as String,
|
|
typeId: json['typeId'] as String,
|
|
updatedAt: DateTime.parse(json['updatedAt'] as String),
|
|
createdAt: DateTime.parse(json['createdAt'] as String),
|
|
error: json['error'] as String?,
|
|
progress: json['progress'] as int?,
|
|
result: json['result'] as String?,
|
|
statusText: json['statusText'] as String?,
|
|
finishedAt: json['finishedAt'] == null
|
|
? null
|
|
: DateTime.parse(json['finishedAt'] as String),
|
|
);
|
|
|
|
Map<String, dynamic> _$ServerJobToJson(ServerJob instance) => <String, dynamic>{
|
|
'name': instance.name,
|
|
'description': instance.description,
|
|
'status': _$JobStatusEnumEnumMap[instance.status]!,
|
|
'uid': instance.uid,
|
|
'typeId': instance.typeId,
|
|
'updatedAt': instance.updatedAt.toIso8601String(),
|
|
'createdAt': instance.createdAt.toIso8601String(),
|
|
'error': instance.error,
|
|
'progress': instance.progress,
|
|
'result': instance.result,
|
|
'statusText': instance.statusText,
|
|
'finishedAt': instance.finishedAt?.toIso8601String(),
|
|
};
|
|
|
|
const _$JobStatusEnumEnumMap = {
|
|
JobStatusEnum.created: 'CREATED',
|
|
JobStatusEnum.running: 'RUNNING',
|
|
JobStatusEnum.finished: 'FINISHED',
|
|
JobStatusEnum.error: 'ERROR',
|
|
};
|