blob: 15d762a9d874b46c0b390e6d3ee778e0892a637e [file] [log] [blame]
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: always_specify_types, implicit_dynamic_parameter
part of 'luci.dart';
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
LuciBuilder _$LuciBuilderFromJson(Map<String, dynamic> json) {
$checkKeys(
json,
requiredKeys: const ['name', 'repo'],
disallowNullValues: const ['name', 'repo'],
);
return LuciBuilder(
name: json['name'] as String,
repo: json['repo'] as String?,
flaky: json['flaky'] as bool?,
enabled: json['enabled'] as bool?,
runIf: (json['run_if'] as List<dynamic>?)?.map((e) => e as String).toList(),
taskName: json['task_name'] as String?,
);
}
Map<String, dynamic> _$LuciBuilderToJson(LuciBuilder instance) {
final val = <String, dynamic>{
'name': instance.name,
};
void writeNotNull(String key, dynamic value) {
if (value != null) {
val[key] = value;
}
}
writeNotNull('repo', instance.repo);
val['flaky'] = instance.flaky;
val['enabled'] = instance.enabled;
val['run_if'] = instance.runIf;
val['task_name'] = instance.taskName;
return val;
}