Map<String, dynamic> toJSON() => { 'ids': _ids, 'provider': (_providerId == null || _providerId?.length == 0) ? null : _providerId };