validate property
Implementation
String get validate => """\$validator = ${text.toString()};
if (\$validator->fails()) {
return response()->json(['response_code' => 401, 'error' => \$validator->errors(), $customMessage], 401);
} """;