Input$LeaderboardWithRequiredCycleInput.fromJson constructor

Input$LeaderboardWithRequiredCycleInput.fromJson(
  1. Map<String, dynamic> data
)

Implementation

factory Input$LeaderboardWithRequiredCycleInput.fromJson(
    Map<String, dynamic> data) {
  final result$data = <String, dynamic>{};
  final l$cycle = data['cycle'];
  result$data['cycle'] =
      fromJson$Enum$LeaderboardCycleEnum((l$cycle as String));
  final l$target = data['target'];
  result$data['target'] =
      Input$TargetACIInput.fromJson((l$target as Map<String, dynamic>));
  if (data.containsKey('searchString')) {
    final l$searchString = data['searchString'];
    result$data['searchString'] = (l$searchString as String?);
  }
  return Input$LeaderboardWithRequiredCycleInput._(result$data);
}