MitigationActionParams.fromJson constructor

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

Implementation

factory MitigationActionParams.fromJson(Map<String, dynamic> json) {
  return MitigationActionParams(
    addThingsToThingGroupParams: json['addThingsToThingGroupParams'] != null
        ? AddThingsToThingGroupParams.fromJson(
            json['addThingsToThingGroupParams'] as Map<String, dynamic>)
        : null,
    enableIoTLoggingParams: json['enableIoTLoggingParams'] != null
        ? EnableIoTLoggingParams.fromJson(
            json['enableIoTLoggingParams'] as Map<String, dynamic>)
        : null,
    publishFindingToSnsParams: json['publishFindingToSnsParams'] != null
        ? PublishFindingToSnsParams.fromJson(
            json['publishFindingToSnsParams'] as Map<String, dynamic>)
        : null,
    replaceDefaultPolicyVersionParams:
        json['replaceDefaultPolicyVersionParams'] != null
            ? ReplaceDefaultPolicyVersionParams.fromJson(
                json['replaceDefaultPolicyVersionParams']
                    as Map<String, dynamic>)
            : null,
    updateCACertificateParams: json['updateCACertificateParams'] != null
        ? UpdateCACertificateParams.fromJson(
            json['updateCACertificateParams'] as Map<String, dynamic>)
        : null,
    updateDeviceCertificateParams:
        json['updateDeviceCertificateParams'] != null
            ? UpdateDeviceCertificateParams.fromJson(
                json['updateDeviceCertificateParams'] as Map<String, dynamic>)
            : null,
  );
}