QuerySource.fromJson constructor

QuerySource.fromJson(
  1. Map json_
)

Implementation

QuerySource.fromJson(core.Map json_)
    : this(
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        operators: json_.containsKey('operators')
            ? (json_['operators'] as core.List)
                .map((value) => QueryOperator.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        shortName: json_.containsKey('shortName')
            ? json_['shortName'] as core.String
            : null,
        source: json_.containsKey('source')
            ? Source.fromJson(
                json_['source'] as core.Map<core.String, core.dynamic>)
            : null,
      );