apiMethod top-level property

Map<ApiMethod, String> apiMethod
getter/setter pair

api Method with Map of ApiMethod, String

  • ApiMethod.GET - Get method = 'get'
  • ApiMethod.POST - Post method = 'post'
  • ApiMethod.PUT - Put method = 'put'
  • ApiMethod.DELETE - Delete method = 'delete'

Implementation

Map<ApiMethod, String> apiMethod = {
  ApiMethod.GET: 'get',
  ApiMethod.POST: 'post',
  ApiMethod.PUT: 'put',
  ApiMethod.DELETE: 'delete'
};