Map<String, dynamic> toMap() { return { "inAppType": this.inAppType.toString().split(".")[1], "templateId": this.templateId, "batch": this.batch }; }