import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:flutter/foundation.dart';

import 'ad_config.dart';
import 'ranks.dart';
import 'groups.dart';
import 'user.dart';
import 'app_config.dart';
import 'upgrade.dart';
import 'nodes_config.dart';
part 'launch.freezed.dart';
part 'launch.g.dart';

@freezed
class Launch with _$Launch {
  const factory Launch({
    User? userConfig,
    AppConfig? appConfig,
    Upgrade? upgradeConfig,
    AdConfig? adConfig,
    Groups? groups,
    List<Ranks>? ranks,
    dynamic exData,
    NodesConfig? nodesConfig,
  }) = _Launch;

  factory Launch.fromJson(Map<String, Object?> json) => _$LaunchFromJson(json);
}
