PayloadEncryption.fromJson(Map<String, dynamic> json) { enforcement = json['enforcement'].cast<String>(); }