UserMetaDataUpdateRequest constructor Null safety

UserMetaDataUpdateRequest(
  1. Map<String, String> metaData,
  2. {String? userId,
  3. bool upsert = true}
)

Implementation

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