PipelineActivity.fromJson constructor

PipelineActivity.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory PipelineActivity.fromJson(Map<String, dynamic> json) {
  return PipelineActivity(
    addAttributes: json['addAttributes'] != null
        ? AddAttributesActivity.fromJson(
            json['addAttributes'] as Map<String, dynamic>)
        : null,
    channel: json['channel'] != null
        ? ChannelActivity.fromJson(json['channel'] as Map<String, dynamic>)
        : null,
    datastore: json['datastore'] != null
        ? DatastoreActivity.fromJson(
            json['datastore'] as Map<String, dynamic>)
        : null,
    deviceRegistryEnrich: json['deviceRegistryEnrich'] != null
        ? DeviceRegistryEnrichActivity.fromJson(
            json['deviceRegistryEnrich'] as Map<String, dynamic>)
        : null,
    deviceShadowEnrich: json['deviceShadowEnrich'] != null
        ? DeviceShadowEnrichActivity.fromJson(
            json['deviceShadowEnrich'] as Map<String, dynamic>)
        : null,
    filter: json['filter'] != null
        ? FilterActivity.fromJson(json['filter'] as Map<String, dynamic>)
        : null,
    lambda: json['lambda'] != null
        ? LambdaActivity.fromJson(json['lambda'] as Map<String, dynamic>)
        : null,
    math: json['math'] != null
        ? MathActivity.fromJson(json['math'] as Map<String, dynamic>)
        : null,
    removeAttributes: json['removeAttributes'] != null
        ? RemoveAttributesActivity.fromJson(
            json['removeAttributes'] as Map<String, dynamic>)
        : null,
    selectAttributes: json['selectAttributes'] != null
        ? SelectAttributesActivity.fromJson(
            json['selectAttributes'] as Map<String, dynamic>)
        : null,
  );
}