Action.fromJson constructor

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

Implementation

factory Action.fromJson(Map<String, dynamic> json) {
  return Action(
    actionType: json['actionType'] as String?,
    awsApiCallAction: json['awsApiCallAction'] != null
        ? AwsApiCallAction.fromJson(
            json['awsApiCallAction'] as Map<String, dynamic>)
        : null,
    dnsRequestAction: json['dnsRequestAction'] != null
        ? DnsRequestAction.fromJson(
            json['dnsRequestAction'] as Map<String, dynamic>)
        : null,
    networkConnectionAction: json['networkConnectionAction'] != null
        ? NetworkConnectionAction.fromJson(
            json['networkConnectionAction'] as Map<String, dynamic>)
        : null,
    portProbeAction: json['portProbeAction'] != null
        ? PortProbeAction.fromJson(
            json['portProbeAction'] as Map<String, dynamic>)
        : null,
  );
}