Use @derive directive to access fields using square brackets notation