toolheim/mobile-app/lib/data/warband_roaster.g.dart

46 lines
1.6 KiB
Dart
Raw Normal View History

2019-06-25 00:53:45 +02:00
// GENERATED CODE - DO NOT MODIFY BY HAND
2019-07-06 00:44:20 +02:00
part of 'warband_roaster.dart';
2019-06-25 00:53:45 +02:00
// **************************************************************************
// JsonSerializableGenerator
// **************************************************************************
HenchmenGroup _$HenchmenGroupFromJson(Map json) {
return HenchmenGroup(
HenchmenGroup._henchmenHeaderFromJson(json['group'] as String),
Unit._statsFromJson(json['stats'] as String),
Unit._splitListFromJson(json['weapons'] as String),
Unit._splitListFromJson(json['amour'] as String));
}
Hero _$HeroFromJson(Map json) {
return Hero(
Unit._statsFromJson(json['stats'] as String),
Unit._splitListFromJson(json['skilllists'] as String),
Unit._splitListFromJson(json['weapons'] as String),
Unit._splitListFromJson(json['amour'] as String),
Unit._splitListFromJson(json['rules'] as String),
json['warbandaddition'] as int,
Hero._heroHeaderFromJson(json['hero'] as String));
}
WarbandRoaster _$WarbandRoasterFromJson(Map json) {
return WarbandRoaster(
WarbandRoaster._warbandNameAndRace(json['warband'] as String),
json['campaign'] as int,
json['objective'] as String,
json['alignment'] as String,
json['gc'] as int,
json['shards'] as int,
json['equipment'] as String,
json['achievments'] as String,
(json['heros'] as List)
?.map((e) => e == null ? null : Hero.fromJson(e))
?.toList(),
(json['henchmen'] as List)
?.map((e) => e == null ? null : HenchmenGroup.fromJson(e))
2019-07-06 00:44:20 +02:00
?.toList())
..active = json['active'] as bool;
2019-06-25 00:53:45 +02:00
}