toMap method
Convert all controller values to Map with type conversion
Implementation
Map<String, dynamic> toMap() => {
"email": _convertType(email.text, "string"),
"password": _convertType(password.text, "string"),
"age": _convertType(age.text, "int"),
"isActive": _convertType(isActive.text, "bool"),
};