methodForSave method
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;