Feed.fromJson constructor

Feed.fromJson(
  1. Map json_
)

Implementation

Feed.fromJson(core.Map json_)
    : this(
        assetNames: json_.containsKey('assetNames')
            ? (json_['assetNames'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        assetTypes: json_.containsKey('assetTypes')
            ? (json_['assetTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        condition: json_.containsKey('condition')
            ? Expr.fromJson(
                json_['condition'] as core.Map<core.String, core.dynamic>)
            : null,
        contentType: json_.containsKey('contentType')
            ? json_['contentType'] as core.String
            : null,
        feedOutputConfig: json_.containsKey('feedOutputConfig')
            ? FeedOutputConfig.fromJson(json_['feedOutputConfig']
                as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        relationshipTypes: json_.containsKey('relationshipTypes')
            ? (json_['relationshipTypes'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
      );