MitigationAction.fromJson constructor

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

Implementation

factory MitigationAction.fromJson(Map<String, dynamic> json) {
  return MitigationAction(
    actionParams: json['actionParams'] != null
        ? MitigationActionParams.fromJson(
            json['actionParams'] as Map<String, dynamic>)
        : null,
    id: json['id'] as String?,
    name: json['name'] as String?,
    roleArn: json['roleArn'] as String?,
  );
}