mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2024-09-06 20:16:56 +00:00
87 lines
3 KiB
Dart
87 lines
3 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'server_api.graphql.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
Query$GetApiTokensQuery _$Query$GetApiTokensQueryFromJson(
|
|
Map<String, dynamic> json) =>
|
|
Query$GetApiTokensQuery(
|
|
api: Query$GetApiTokensQuery$api.fromJson(
|
|
json['api'] as Map<String, dynamic>),
|
|
$__typename: json['__typename'] as String,
|
|
);
|
|
|
|
Map<String, dynamic> _$Query$GetApiTokensQueryToJson(
|
|
Query$GetApiTokensQuery instance) =>
|
|
<String, dynamic>{
|
|
'api': instance.api.toJson(),
|
|
'__typename': instance.$__typename,
|
|
};
|
|
|
|
Query$GetApiTokensQuery$api _$Query$GetApiTokensQuery$apiFromJson(
|
|
Map<String, dynamic> json) =>
|
|
Query$GetApiTokensQuery$api(
|
|
devices: (json['devices'] as List<dynamic>)
|
|
.map((e) => Query$GetApiTokensQuery$api$devices.fromJson(
|
|
e as Map<String, dynamic>))
|
|
.toList(),
|
|
$__typename: json['__typename'] as String,
|
|
);
|
|
|
|
Map<String, dynamic> _$Query$GetApiTokensQuery$apiToJson(
|
|
Query$GetApiTokensQuery$api instance) =>
|
|
<String, dynamic>{
|
|
'devices': instance.devices.map((e) => e.toJson()).toList(),
|
|
'__typename': instance.$__typename,
|
|
};
|
|
|
|
Query$GetApiTokensQuery$api$devices
|
|
_$Query$GetApiTokensQuery$api$devicesFromJson(Map<String, dynamic> json) =>
|
|
Query$GetApiTokensQuery$api$devices(
|
|
creationDate: dateTimeFromJson(json['creationDate']),
|
|
isCaller: json['isCaller'] as bool,
|
|
name: json['name'] as String,
|
|
$__typename: json['__typename'] as String,
|
|
);
|
|
|
|
Map<String, dynamic> _$Query$GetApiTokensQuery$api$devicesToJson(
|
|
Query$GetApiTokensQuery$api$devices instance) =>
|
|
<String, dynamic>{
|
|
'creationDate': dateTimeToJson(instance.creationDate),
|
|
'isCaller': instance.isCaller,
|
|
'name': instance.name,
|
|
'__typename': instance.$__typename,
|
|
};
|
|
|
|
Query$GetApiVersionQuery _$Query$GetApiVersionQueryFromJson(
|
|
Map<String, dynamic> json) =>
|
|
Query$GetApiVersionQuery(
|
|
api: Query$GetApiVersionQuery$api.fromJson(
|
|
json['api'] as Map<String, dynamic>),
|
|
$__typename: json['__typename'] as String,
|
|
);
|
|
|
|
Map<String, dynamic> _$Query$GetApiVersionQueryToJson(
|
|
Query$GetApiVersionQuery instance) =>
|
|
<String, dynamic>{
|
|
'api': instance.api.toJson(),
|
|
'__typename': instance.$__typename,
|
|
};
|
|
|
|
Query$GetApiVersionQuery$api _$Query$GetApiVersionQuery$apiFromJson(
|
|
Map<String, dynamic> json) =>
|
|
Query$GetApiVersionQuery$api(
|
|
version: json['version'] as String,
|
|
$__typename: json['__typename'] as String,
|
|
);
|
|
|
|
Map<String, dynamic> _$Query$GetApiVersionQuery$apiToJson(
|
|
Query$GetApiVersionQuery$api instance) =>
|
|
<String, dynamic>{
|
|
'version': instance.version,
|
|
'__typename': instance.$__typename,
|
|
};
|