ArimaForecastingMetrics.fromJson constructor

ArimaForecastingMetrics.fromJson(
  1. Map json_
)

Implementation

ArimaForecastingMetrics.fromJson(core.Map json_)
    : this(
        arimaFittingMetrics: json_.containsKey('arimaFittingMetrics')
            ? (json_['arimaFittingMetrics'] as core.List)
                .map((value) => ArimaFittingMetrics.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        arimaSingleModelForecastingMetrics: json_
                .containsKey('arimaSingleModelForecastingMetrics')
            ? (json_['arimaSingleModelForecastingMetrics'] as core.List)
                .map((value) => ArimaSingleModelForecastingMetrics.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        hasDrift: json_.containsKey('hasDrift')
            ? (json_['hasDrift'] as core.List)
                .map((value) => value as core.bool)
                .toList()
            : null,
        nonSeasonalOrder: json_.containsKey('nonSeasonalOrder')
            ? (json_['nonSeasonalOrder'] as core.List)
                .map((value) => ArimaOrder.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        seasonalPeriods: json_.containsKey('seasonalPeriods')
            ? (json_['seasonalPeriods'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        timeSeriesId: json_.containsKey('timeSeriesId')
            ? (json_['timeSeriesId'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );