Input$FlowFlowActionLogicInput.fromJson constructor

Input$FlowFlowActionLogicInput.fromJson(
  1. Map<String, dynamic> data
)

Implementation

factory Input$FlowFlowActionLogicInput.fromJson(Map<String, dynamic> data) {
  final result$data = <String, dynamic>{};
  final l$condition = data['condition'];
  result$data['condition'] = (l$condition as List<dynamic>)
      .map((e) =>
          Input$AudienceSegmentInput.fromJson((e as Map<String, dynamic>)))
      .toList();
  if (data.containsKey('yes')) {
    final l$yes = data['yes'];
    result$data['yes'] = (l$yes as List<dynamic>?)
        ?.map((e) =>
            Input$FlowFlowActionInput.fromJson((e as Map<String, dynamic>)))
        .toList();
  }
  if (data.containsKey('no')) {
    final l$no = data['no'];
    result$data['no'] = (l$no as List<dynamic>?)
        ?.map((e) =>
            Input$FlowFlowActionInput.fromJson((e as Map<String, dynamic>)))
        .toList();
  }
  if (data.containsKey('rejoin')) {
    final l$rejoin = data['rejoin'];
    result$data['rejoin'] = (l$rejoin as List<dynamic>?)
        ?.map((e) =>
            Input$FlowFlowActionInput.fromJson((e as Map<String, dynamic>)))
        .toList();
  }
  return Input$FlowFlowActionLogicInput._(result$data);
}