toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'email': emailId,
    'required': required ?1:0
    // Add other properties if needed
  };
}