-
Notifications
You must be signed in to change notification settings - Fork 445
Expand file tree
/
Copy pathagora_spatial_audio.g.dart
More file actions
77 lines (66 loc) · 2.58 KB
/
Copy pathagora_spatial_audio.g.dart
File metadata and controls
77 lines (66 loc) · 2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: non_constant_identifier_names, deprecated_member_use_from_same_package, unused_element
part of 'agora_spatial_audio.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
RemoteVoicePositionInfo _$RemoteVoicePositionInfoFromJson(
Map<String, dynamic> json) =>
RemoteVoicePositionInfo(
position: (json['position'] as List<dynamic>?)
?.map((e) => (e as num).toDouble())
.toList(),
forward: (json['forward'] as List<dynamic>?)
?.map((e) => (e as num).toDouble())
.toList(),
);
Map<String, dynamic> _$RemoteVoicePositionInfoToJson(
RemoteVoicePositionInfo instance) {
final val = <String, dynamic>{};
void writeNotNull(String key, dynamic value) {
if (value != null) {
val[key] = value;
}
}
writeNotNull('position', instance.position);
writeNotNull('forward', instance.forward);
return val;
}
SpatialAudioZone _$SpatialAudioZoneFromJson(Map<String, dynamic> json) =>
SpatialAudioZone(
zoneSetId: (json['zoneSetId'] as num?)?.toInt(),
position: (json['position'] as List<dynamic>?)
?.map((e) => (e as num).toDouble())
.toList(),
forward: (json['forward'] as List<dynamic>?)
?.map((e) => (e as num).toDouble())
.toList(),
right: (json['right'] as List<dynamic>?)
?.map((e) => (e as num).toDouble())
.toList(),
up: (json['up'] as List<dynamic>?)
?.map((e) => (e as num).toDouble())
.toList(),
forwardLength: (json['forwardLength'] as num?)?.toDouble(),
rightLength: (json['rightLength'] as num?)?.toDouble(),
upLength: (json['upLength'] as num?)?.toDouble(),
audioAttenuation: (json['audioAttenuation'] as num?)?.toDouble(),
);
Map<String, dynamic> _$SpatialAudioZoneToJson(SpatialAudioZone instance) {
final val = <String, dynamic>{};
void writeNotNull(String key, dynamic value) {
if (value != null) {
val[key] = value;
}
}
writeNotNull('zoneSetId', instance.zoneSetId);
writeNotNull('position', instance.position);
writeNotNull('forward', instance.forward);
writeNotNull('right', instance.right);
writeNotNull('up', instance.up);
writeNotNull('forwardLength', instance.forwardLength);
writeNotNull('rightLength', instance.rightLength);
writeNotNull('upLength', instance.upLength);
writeNotNull('audioAttenuation', instance.audioAttenuation);
return val;
}