public argument(name as String, defaultValue as String = "") as String:
Returns an annotation argument value or a default value.
| Parameter | Description |
|---|---|
name | Argument name. |
defaultValue | Returned when the argument is absent. |
Raw source value for the argument.
ann = Annotation("Entity", {"tableName": "T_Users"})
assert ann.argument("tableName", "User") == "T_Users"
assert ann.argument("schema", "public") == "public"