methodForSave method

  1. @protected
DataRequestMethod methodForSave(
  1. dynamic id,
  2. Map<String, dynamic> params
)
inherited

Returns HTTP method for save. Defaults to PATCH if id is present, or POST otherwise.

Implementation

@protected
DataRequestMethod methodForSave(id, Map<String, dynamic> params) =>
    id != null ? DataRequestMethod.PATCH : DataRequestMethod.POST;