SourceConfig.fromJson constructor

SourceConfig.fromJson(
  1. Map json_
)

Implementation

SourceConfig.fromJson(core.Map json_)
    : this(
        crowdingConfig: json_.containsKey('crowdingConfig')
            ? SourceCrowdingConfig.fromJson(json_['crowdingConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        scoringConfig: json_.containsKey('scoringConfig')
            ? SourceScoringConfig.fromJson(
                json_['scoringConfig'] as core.Map<core.String, core.dynamic>)
            : null,
        source: json_.containsKey('source')
            ? Source.fromJson(
                json_['source'] as core.Map<core.String, core.dynamic>)
            : null,
      );