UserMetaDataCreateRequest constructor

UserMetaDataCreateRequest(
  1. Map<String, String> metaData, {
  2. String? userId,
})

Implementation

UserMetaDataCreateRequest(Map<String, String> metaData, {String? userId})
    : super(userId: userId) {
  url = 'users/${userId ?? state.userId}/metadata';
  body = {'metadata': metaData, 'upsert': true};
}